Adding and Deleting IP Addresses
This topic provides information about adding or deleting IP addresses.
Multinetting is adding more than one IP address to an IP interface—that is, a primary address and one or more secondary addresses.
![]() |
|
You can add or delete IP primary and secondary addresses for an interface with the following tasks:
Adding and Deleting a Primary Address
You can add IP primary address to an interface or delete the existing primary address using the ip address command.
![]() |
|
To add a primary address:
- Issue the ip address command
in Interface Configuration mode.host1(config-if)#ip address 192.168.2.77 255.255.255.0
You can specify the subnetwork mask value in either dotted decimal or prefix length notation.

Note: You can use this command in Subinterface Configuration mode or Profile Configuration mode.
Use the no version to remove an IP address. If you remove a primary IP address, IP processing is disabled on the interface.
Adding and Deleting a Secondary (Multinet) Address
You can add a secondary IP address to an interface or delete the assigned secondary address using the ip address command with the secondary keyword.
![]() |
|
To add a secondary address:
- Issue the ip address command
with the secondary keyword.host1(config-if)#ip address 172.31.7.22 255.255.255.0 secondary
You can specify the subnetwork mask value in either dotted decimal or prefix length notation.

Note: You can use this command in Subinterface Configuration mode or Profile Configuration mode.
Use the no version to remove an IP address.
Hide Navigation Pane
Show Navigation Pane
SHA1