2-132
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
ip address
ip address
Use the ip address interface configuration command to set an IP address for a switch. Use the no form
of this command to remove an IP address or to disable IP processing.
ip address ip-address subnet-mask
no ip address ip-address subnet-mask
Syntax Description
Defaults No IP address is defined for the switch.
Command Modes Interface configuration
Command History
Usage Guidelines A switch can have one IP address.
The IP address of the switch can be accessed only by nodes connected to ports that belong to the
management VLAN. The default for the management VLAN is VLAN 1, but you can configure a
different VLAN as the management VLAN.
If you remove the IP address through a Telnet or Secure Shell (SSH) session, your connection to the
switch is lost.
If your switch receives its IP address from a Bootstrap Protocol (BOOTP) or a DHCP server and you
remove the switch IP address by using the no ip address command, IP processing is disabled, and the
BOOTP or DHCP server cannot reassign the address.
Examples This example shows how to configure the IP address for the switch on a subnetted network:
Switch(config)# interface vlan 1
Switch(config-if)# ip address 172.20.128.2 255.255.255.0
You can verify your settings by entering the show running-config privileged EXEC command.
Related Commands
ip-address IP address.
subnet-mask Mask for the associated IP subnet.
Release Modification
12.0(5.2)WC(1) This command was introduced.
Command Description
show running-config Displays the configuration information running on the switch. For syntax
information, select Cisco IOS Configuration Fundamentals Command
Reference for Release 12.1 > Cisco IOS File Management Commands >
Configuration File Commands.