查看linux系統網卡工作模式、速率等 有時候,我們需要看下linux系統網卡工作模式、速率等,比較常用到的命令是mii-tool、ethtool,下面簡單看下即可。 www.2cto.com 查看下eth0網卡資訊[root@cloud ~]# mii-tool -v eth0eth0: negotiated 100baseTx-FD flow-control, link okproduct info: vendor 00:00:20, model 32 rev 1basic mode: autonegotiation enabledbasic status: autonegotiation complete, link okcapabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HDadvertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-controllink partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control 從上面可以看出eth0 工作 100M全雙工系統自適應模式下[root@cloud ~]# ethtool eth0Settings for eth0:Supported ports: [ TP MII ]Supported link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/FullSupports auto-negotiation: YesAdvertised link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/FullAdvertised pause frame use: Symmetric Receive-onlyAdvertised auto-negotiation: YesLink partner advertised link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/FullLink partner advertised pause frame use: Symmetric Receive-onlyLink partner advertised auto-negotiation: YesSpeed: 100Mb/sDuplex: FullPort: MIIPHYAD: 0Transceiver: internalAuto-negotiation: onSupports Wake-on: pumbgWake-on: gCurrent message level: 0x00000033 (51)Link detected: yes[root@cloud ~]#