Answers:
假设您的网卡名称eth0
:
您可以通过三个命令来验证速度和一些信息:
第一命令:
dmesg |grep eth0
输出:
第二命令:
mii-tool -v eth0
输出:
FD:全双工,启用并发发送和接收的逻辑。当您的计算机连接到交换机时,通常这是理想的并启用的功能。
HD:半双工,他的逻辑要求卡仅在单个时间点发送或接收。当您的计算机连接到集线器时,它会自动协商并使用半双工模式以避免冲突。
第三命令:
ethtool eth0
ethtool - Display or change ethernet card settings
安装ethtool:
sudo apt-get install ethtool
输出:
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
希望能帮助到你 。