Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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.

    Note:

    • The primary address must be the first address added to the interface.
    • Adding a new primary address overwrites the existing primary address.
    • You can change a secondary address to be the primary address on an interface only via SNMP.
    • An unnumbered address is always the primary address; adding an unnumbered address, therefore, overwrites any other numbered address.
    • You must always remove the primary address from an interface last.
    • You cannot delete the primary address if the interface still has assigned secondary addresses.

    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.

    Published: 2014-08-13