檢測網卡狀態ethtool

檢測網卡狀態除了目視硬網卡的燈號是否閃爍以外,還可以用指令看到目前網卡速度是 100M 還是 10M,因為即使網卡支援 1000M,也會因為網路環境,而降速至 10M。

# ethtool eth0
 Settings for eth0:
 Supported ports: [ TP ]
 Supported link modes: 10baseT/Half 10baseT/Full
            100baseT/Half 100baseT/Full
            1000baseT/Full
 Supports auto-negotiation: Yes
 Advertised link modes: 10baseT/Half 10baseT/Full  // 目前最高速度可到 1000Mb/s
            100baseT/Half 100baseT/Full
            1000baseT/Full
 Advertised pause frame use: No
 Advertised auto-negotiation: Yes
 Speed: 1000Mb/s
 Duplex: Full
 Port: Twisted Pair
 PHYAD: 0
 Transceiver: internal
 Auto-negotiation: on
 MDI-X: Unknown
 Supports Wake-on: d
 Wake-on: d
 Current message level: 0x00000007 (7)
 Link detected: yes  // 接線正常

沒有留言:

張貼留言