[root@c02b03 ~]# ethtool eth0Settings for eth0: Supported ports: [ FIBRE ] Supported link modes: 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Speed: Unknown! Duplex: Unknown! (255) Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000003 (3) Link detected: no[root@c02b03 ~]# ethtool eth1Settings for eth1: Supported ports: [ FIBRE ] Supported link modes: 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: d Wake-on: d Current message level: 0x00000003 (3) Link detected: yes
或者老的mii-tool命令(但是該命令似乎只能識別100M及以下網卡)亦可。
其中, Duplex: Full表示全雙工系統(FD),half表示半雙工(HD), Auto-negotiation 後邊表示是否自動協商
可以通過修改/etc/sysconfig/network-scripts/ifcfg-eth0檔案中的
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
參數進行設定,使用ifup和ifdown來測試