关于看 linux 下网卡 速度的 信息

来源:互联网 发布:淘宝网报名双11 编辑:程序博客网 时间:2024/05/17 01:41

看linux 的 网络的信息:

#   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: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: umbg
        Wake-on: g
        Current message level: 0x00000007 (7)
        Link detected: yes


上面的命令 可以看到 网卡是 千兆的 网卡,

看配置上是:

用: dmesg | grep eth2  可以看到是100m 还是 1000m

或者 在root 下用: mii-tool 可以看到 配置的速度 情况。