ip address
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 the DHCP server cannot reassign the address.
You can verify your settings by entering the show running-config privileged EXEC command.
Examples
This example shows how to configure the IP address for the Layer 2 switch on a subnetted network:
Switch(config)# interface vlan 1
Switch(config-if)# ip address 172.20.128.2 255.255.255.0
This example shows how to configure the IP address for a Layer 3 port on the switch:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# no switchport
Switch(config-if)# ip address 172.20.128.2 255.255.255.0
Related Commands
Command
show running-config
Cisco ME 3800X and ME 3600X Switch Command Reference
2-100
Chapter 2
Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
Description
Displays the operating configuration.
OL-28238-01