E
:
XAMPLE
Switch# show telnet-server
Telnet UI Idle Timeout: 5 Min.
Telnet Server
---------------
enabled
Switch#
5.6 IP Addressing Commands
ip address
Use the ip address command to specify an IP address and subnet mask for the system.
ip address <ip> <mask>
S
D
YNTAX
ESCRIPTION
D
V
:
EFAULT
ALUE
C
M
:
OMMAND
ODES
R
:
EFERENCE
M
:
ENU
E
:
XAMPLE
!Set IP 172.16.5.151 mask 255.255.240.0
Switch(config)# ip address 172.16.5.151 255.255.240.0
Switch(config)#
:
<ip>
IP address
<mask>
Mask for the associated IP subnet
Both values are 0.0.0.0 by default
Layer-2 switch => Global configuration
Layer-3 switch => Interface configuration (Vlan)
Cisco
Basic Switch Configuration Menu->System IP->Set IP Address Set Subnet
Mask
5-27
Command Line Interface