Configuring and Administering Network Components in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014

Obtaining Information About IP Addresses

For information about IP addresses, use the ipadm show-addr interface command. If you do not specify an interface, then the information about all of the IP addresses that are on the system is displayed.

The fields in the command output refer to the following:


Specifies the address object whose IP address is being listed.


Indicates whether the IP address is static, dhcp, or addrconf. The addrconf value indicates that the address was obtained by using stateless or stateful address configuration.


Describes the status of the address object in the active configuration. For a full list of these values, see the ipadm (1M) man page.


Specifies the IP address that is configured over the interface. The address can be IPv4 or IPv6. A tunnel interface displays both local and remote addresses.

For more information about tunnels, see Chapter 5, Administering IP Tunnels, in Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle Solaris 11.2 .

The following is an example of the information that the show-addr subcommand provides:

# ipadm show-addr
ADDROBJ          TYPE       STATE     ADDR
lo0/v4           static     ok
net0/v4          static     ok
tun0/v4          static     ok>

If you specify an interface with the command and the interface has multiple addresses, information that is similar to the following is displayed:

# ipadm show-addr net0
ADDROBJ          TYPE       STATE     ADDR
net0/v4          static     ok
net0/v4a         static     ok
net0/v4bc        static     ok

An address object that is displayed as interface/? indicates that the address was configured on the interface by an application that did not use libipadm APIs. Such applications are not under the control of the ipadm command, which requires that the address object name use the format interface/user-defined-string. For examples of assigning IP addresses, see How to Configure an IPv4 Interface.