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 127.0.0.1/8 net0/v4 static ok 192.168.84.3/24 tun0/v4 static ok 172.16.134.1-->172.16.134.2
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 192.168.84.3/24 net0/v4a static ok 10.0.1.1/24 net0/v4bc static ok 172.16.10.1
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.