檢查維護系統的時候,常常會要查看伺服器的網路連接埠是多大的,所以需要用到Linux的一個指令。
如何查看CentOS的網路頻寬出口多大?可以用下面的命令來查看。
# ethtool eth0
前面是指令,後面跟的是設備名,如果對外連接的網路設備是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###以上是查看CentOS網路出口頻寬大小的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!