You can troubleshoot network configuration problems with a single system by using the dladm and ipadm commands. These two commands, when used without any options, provide useful information about your current network configuration.
The following are some of the ways in which you can use these commands to troubleshoot configuration issues:
Use the dladm command to display general information about all of the datalinks that are on a system:
# dladm LINK CLASS MTU STATE OVER net0 phys 1500 up --
Display information about the mapping between the datalinks, their generic names, and the corresponding network device instances as follows:
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full e1000g0
Use the ipadm command to display general information about all of the IP interfaces that are on a system:
# ipadm NAME CLASS/TYPE STATE UNDER ADDR lo0 loopback ok -- -- lo0/v4 static ok -- 127.0.0.1/8 lo0/v6 static ok -- ::1/128 net0 ip ok -- -- net0/v4 static ok -- 203.0.113.10/24
Use the ipadm show-if interface command to display information about a specific IP interface:
# ipadm show-if net0 IFNAME CLASS STATE ACTIVE OVER net0 ip ok yes --
Display information about all of the interfaces on a system as follows:
# ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok yes --
Display information about all of the IP addresses on the system as follows:
# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 192.0.2.3/24
Use the ipadm show-addr interface command to display information about a specific interface's IP address:
# ipadm show-addr net0 ADDROBJ TYPE STATE ADDR net0/v4 dhcp ok 203.0.113.10/24
Display the properties of a specific IP address as follows::
# ipadm show-addrprop net1/v4 ADDROBJ PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE net0/v4 broadcast r- 203.0.113.10 -- 203.255.255.255 -- net0/v4 deprecated rw off -- off on,off net0/v4 prefixlen rw 24 -- 8 1-30,32 net0/v4 private rw off -- off on,off net0/v4 reqhost r- -- -- -- -- net0/v4 transmit rw on -- on on,off net0/v4 zone rw global -- global
For more information, see the ipadm(1M) man page.