mii-tool指令用于檢視、管理網絡接口,預設情況下網卡的狀态是自動協商的,但是有時也會出現不正常的情況,可以使用mii-tool進行調整。
mii-tool [option] [interface]
mii-tool指令的參數選項及說明
-v 顯示詳細資訊
-r 重新開機自動協商模式
[root@linuxprobe ~]# mii-tool eth0 #<==不接任何選項,顯示精簡資訊。
eth0: no autonegotiation, 1000baseT-FD flow-control, link ok <=—網絡連接配接正常。
[root@linuxprobe ~]# mii-tool -v eth0# <==使用-v選項顯示詳細資訊。
eth0: no autonegotiation, 1000baseT-FD flow-control, link ok
product info: Yukon 88E1011 rev 4
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD