Use the dladm show-phys command to obtain information about the system's datalinks in relation to the physical NICs with which they are associated. Used without any options, the command displays information that is similar to the following example:
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 100Mb full e1000g0 net1 Ethernet down 0Mb -- nge0 net2 Ethernet up 100Mb full bge0 net3 InfiniBand -- 0Mb -- ibd0
The previous output shows, among other details, the physical NICs with which the datalinks that have generic link names are associated. For example, net0 is the datalink name of the NIC e1000g0. To display information about flags that have been set for the datalinks, use the –P option. For example, a datalink that is flagged with r means that its underlying NIC has been removed.
In the previous output, the STATE column shows the current state of the physical datalink. The state can be up, down, or unknown. The physical link state identifies whether the physical device has connectivity with the external network (which it does, if the cable is plugged in and the state of the port on the other end of the cable is up.
The –L option is another useful option that you can use. This option displays the physical location for each datalink. The location determines the instance number of the datalink, such as net0, net1, and so on.
# dladm show-phys -L LINK DEVICE LOCATION net0 bge0 MB net2 ibp0 MB/RISER0/PCIE0/PORT1 net3 ibp1 MB/RISER0/PCIE0/PORT2 net4 eoib2 MB/RISER0/PCIE0/PORT1/cloud-nm2gw-2/1A-ETH-2
Use the –m option to display the MAC addresses of the physical links in a system:
# dladm show-phys -m LINK SLOT ADDRESS INUSE CLIENT net0 primary 0:11:22:a9:ee:66 yes net0
This command is similar to using the ifconfig command.
Display the MAC addresses of all of the links in a system (physical and non-physical) as follows:
# dladm show-linkprop -p mac-address LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE net0 mac-address rw 0:11:22:a9:ee:66 0:11:22:a9:ee:66 0:11:22:a9:ee:66 --