檢查維護系統(tǒng)的時候,經(jīng)常會要查看服務器的網(wǎng)絡端口是多大的,所以需要用到Linux的一個命令。
如何查看CentOS的網(wǎng)絡帶寬出口多大?可以用下面的命令來查看。
# ethtool eth0
前面是命令,后面跟的是設備名,如果對外連接的網(wǎng)絡設備是eth1,那就需要改成:ethtool eth0
[root@localhost ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes