Replacing an IP Address
- Enter global configuration mode.
- Use the
interfacecommand to enter interface configuration mode. - Use the
ip addresscommand to replace an existing primary IP address with a new IP address. Note that when you choose the replace option to remove the existing IP address on an interface, the action cannot be undone. - Use the
show running interfacecommand to display the newly configured IP address on the interface.The replace option is not displayed in running or startup configurations.
The following example shows how to replace the primary IP address of an interface.
device# configure terminal device(config)# interface ethernet 1/1/21 device(config-if-e1000-1/1/21)# ip address 10.1.1.1/24 replace