Linux下如何判断网络带宽大小
查看端口带宽(root或sudo权限),通过下面输出可以看到speed那一行,表示万兆网。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | [root@lhrgp40 local]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.72.6.40 netmask 255.255.0.0 broadcast 172.72.255.255 ether 02:42:ac:48:06:28 txqueuelen 0 (Ethernet) RX packets 77954 bytes 9657950 (9.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 100131 bytes 101476573 (96.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1000 (Local Loopback) RX packets 209535 bytes 90680639 (86.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 209535 bytes 90680639 (86.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@lhrgp40 local]# ethtool eth0 Settings for eth0: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: off MDI-X: Unknown Link detected: yes |