来自: http://man.linuxde.net/mii-tool
来自: http://man.linuxde.net/mii-tool
eth0: negotiated 100baseTx-FD, link ok
product info: vendor 00:55:00, model 59 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
可执行 mii-tool -F 100baseTx-FD 命令设置
同理 也可使用ethtool
ethtool -s eth0 speed 100 duplex full
也可完成同样功能
[root@test /]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
常用命令
ethtool -p ethX 多用于查询哪一个物理网口对应ethX
ethtool -p eth0 对应的网口两个指示灯闪烁
ethtool -s eth0 speed 1000 duplex full autoneg off 修改端口速率
来自: http://man.linuxde.net/mii-tool