Solaris 10 : Network link status

Lists all the network interfaces with Link Status (UP/DOWN), current speed (Mbps) and Mode Duplex (Half/Full)
bash-3.00# dladm show-dev
bge0            link: unknown   speed: 0     Mbps       duplex: unknown
bge1            link: unknown   speed: 0     Mbps       duplex: unknown
nxge0           link: up        speed: 10000 Mbps       duplex: full
nxge1           link: down      speed: 0     Mbps       duplex: unknown
nxge2           link: up        speed: 10000 Mbps       duplex: full
nxge3           link: down      speed: 0     Mbps       duplex: unknown


MTU and the VLAN tagging detail
bash-3.00# dladm show-link
bge0            type: non-vlan  mtu: 1500       device: bge0
bge1            type: non-vlan  mtu: 1500       device: bge1
nxge0           type: non-vlan  mtu: 1500       device: nxge0
nxge1           type: non-vlan  mtu: 1500       device: nxge1
nxge2           type: non-vlan  mtu: 1500       device: nxge2
nxge3           type: non-vlan  mtu: 1500       device: nxge3

Network traffic statistics including Input/Output packets & errors

bash-3.00# dladm show-dev -s
                ipackets  rbytes         ierrors opackets        obytes      oerrors
bge0            0         0           0       0         0           0
bge1            0         0           0       0         0           0
nxge0           1158473674053083230732460       728537323272594316715650
nxge1           0         0           0       0         0           0
nxge2           28919953  1741794926  0       790379298980418528244420
nxge3           0         0           0       0         0           0



Displays network traffic statistics (in this example every 5 seconds)


bash-3.00# dladm show-link -s -i 5 nxge0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
nxge0           1158478616053083356284770       728538625972594339077740
                ipackets  rbytes         ierrors opackets        obytes      oerrors
nxge0           1678      206109      0       464       89159       0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
nxge0           1369      128339      0       373       51196       0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
nxge0           1926      1213927     0       618       79638       0
                ipackets  rbytes         ierrors opackets        obytes      oerrors
nxge0           1315      154370      0       400       64380       0



dladm is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.

0 comments: