红联Linux门户
Linux帮助

Linux查看网络带宽是千兆还是万兆

发布时间:2017-01-15 10:39:33来源:linux网站作者:post_yuan
查看机器网络端口:
[trafodion@n12 ~]$ ifconfig
eth1      Link encap:Ethernet  HWaddr 5C:B9:01:9A:48:5D
          inet addr:10.10.11.12  Bcast:10.10.11.255  Mask:255.255.255.0
          inet6 addr: fe80::5eb9:1ff:fe9a:485d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18033924355 errors:0 dropped:857504 overruns:0 frame:0
          TX packets:52425526574 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:66937144646066 (60.8 TiB)  TX bytes:60037314294532 (54.6 TiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1192347276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1192347276 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9188133537474 (8.3 TiB)  TX bytes:9188133537474 (8.3 TiB)
 
查看端口带宽(root或sudo权限),通过下面输出可以看到speed那一行,表示万兆网。
[trafodion@n12 ~]$ sudo ethtool eth1
Settings for eth1:
        Supported ports: [ FIBRE ]
        Supported link modes:   10000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  10000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: off
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes
 
本文永久更新地址:http://www.linuxdiyf.com/linux/27830.html