Sniffer用的还是较多,去详细看看(http://bbs.pcpro.com.cn/viewthread.php?tid=2630)
看网卡的速度和半/全双工模式
# more messages* | grep Link
Sep 3 10:48:46 dns hme: [ID 517527 kern.info] SUNW,hme0 : 100 Mbps Full-Duple
x Link Up
Sep 3 21:25:36 dns hme: [ID 517527 kern.info] SUNW,hme0 : 100 Mbps Full-Duple
x Link Up
Sep 5 15:27:55 dns hme: [ID 517527 kern.info] SUNW,hme0 : 100 Mbps Full-Duple
x Link Up
Sep 6 08:16:30 dns hme: [ID 517527 kern.info] SUNW,hme0 : 100 Mbps Full-Duple
x Link Up
# more /var/adm/messages* | grep Link
Aug 23 18:13:37 bj140 hme: [ID 517527 kern.info] SUNW,hme0 : 100 Mbps Full-Duplex Link Up
# ndd /dev/hme link_speed 输出结果可能是0或1 代表什么还得查找 |