Linux 系统 mii-tool 限制 mii-tool和千兆网络

mii-tool的限制/mii-tool和千兆网络 
 
                        mii-tool的限制/mii-tool和千兆网络
                        mii-tool的限制
                        mii-tool不支持1000M以上的网卡,这里我们先做个实验,先看看100M网卡能不能正确显示:
                        [root@localhost /]# mii-tool -v eth0
                        eth0: negotiated 100baseTx-FD, link ok
                        product info: vendor 00:40:63, model 50 rev 10
                        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
                        #这里显示100M网卡
                        [root@localhost /]# ethtool eth0
                        Settings for eth0:
                        Supported ports: [ TP MII ]
                        Supported link modes: 10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
                        Supports auto-negotiation: Yes
                        Advertised link modes: 10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
                        Advertised auto-negotiation: Yes
                        Speed: 100Mb/s
                        Duplex: Full
                        Port: MII
                        PHYAD: 1
                        Transceiver: internal
                        Auto-negotiation: on
                        Supports Wake-on: pumbg
                        Wake-on: d
                        Current message level: 0x00000001 (1)
                        Link detected: yes
                        #这里也显示是100M网卡
 正常对于100M以下的网卡都能够用这俩个命令来查看,但是对于100M以上网卡的,mii-tool就会出现问题
                        mii-tool -v eth0
                        eth0: negotiated 100baseTx-FD, link ok
                        product info: vendor 00:aa:00, model 56 rev 0
                        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
                        #这里显示100M网卡,实际上我是1000M的接口
                        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
                        100baseT/Half 100baseT/Full
                        1000baseT/Full
                        Advertised auto-negotiation: Yes
                        Speed: 1000Mb/s
                        Duplex: Full
                        Port: Twisted Pair
                        PHYAD: 0
                        Transceiver: internal
                        Auto-negotiation: on
                        Supports Wake-on: umbg
                        Wake-on: d
                        Current message level: 0x00000007 (7)
                        Link detected: yes
                        #这里却正确的显示1000M网卡

你可能感兴趣的:(linux,网络,系统)