Table of ContentsView in Frames

Removing an IP address from an interface

You must remove all the IP addresses from an interface before you can assign that interface to an IPspace.

Step

  1. To remove an IP address from an interface, perform the appropriate action:
    If the IP address is... Then...
    An alias
    • Enter the following command to remove an IPv4 address:
      ifconfig interface -alias address

      interface is the name of the interface.

      address is the IP address configured for the alias.

    • Enter the following command to remove an IPv6 address:
      ifconfig interface inet6 -alias IPv6_address

      interface is the name of the interface.

      IPv6_address is the IPv6 address configured on the interface.

    The primary IP address Enter the following command:
    ifconfig interface 0.0.0.0

    interface is the name of the interface.

    Note: To remove the primary IP address of an interface, you must remove all the aliases from that interface.

Result

You can now assign the interface to an IPspace.