Replacing an IP address
-
Note: The device does not prompt, if no primary IP address matching subnet of the new IP address is already configured on interface and the user use the replace option. When theEnter global configuration mode.
ip addresscommand is used with the replace option, the new IP address is configured. - 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