Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.4

Exit Print View

Updated: February 2022
 
 

Modifying an IP Interface Configuration

The ipadm delete-addr command deletes a specific address configuration from an IP interface. This command is useful when you simply want to remove an IP address from the system or as part of changing an IP address that is configured on an interface. If you want to change the IP address that is configured on an interface, then you must first remove the original address configuration before assigning a new address configuration. See How to Modify an Existing IP Address.

For instructions on creating an IP address for an interface, see How to Configure an IPv4 Interface.


Note -  An interface can have multiple IP addresses. Each address is identified by an address object. To ensure that you are removing the correct address, you must know the address object. Use the ipadm show-addr command to display the IP addresses that are configured on an interface. For more information about displaying IP addresses, see Obtaining Information About IP Addresses.

How to Modify an Existing IP Address

The following procedure describes the steps for reconfiguring a system's existing IP address.

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. Delete the address object that represents the IP address that you want to reconfigure.
    $ ipadm delete-addr addrobj
  2. Assign a new IP address by using the same address object name.
    $ ipadm create-addr -a IP-address addrobj

    To add another interface to the system, see How to Configure an IPv4 Interface in Configuring and Managing Network Components in Oracle Solaris 11.4.

  3. (Optional) If necessary, modify the system's host name as follows:
    $ hostname new-hostname
  4. If necessary, modify the entries in the /etc/hosts file.
  5. Reboot the system for the changes to take effect.