linux网络适配器nat
I have a Linux box and it is connected to a network through a network adapter, say gate
. How to find what is the current speed (10Mbps, 100Mbps or 1000Mbps) of the adapter?
我有一个Linux机器 ,它通过网络适配器(例如gate
)连接到网络 。 如何找到适配器的当前速度(10Mbps,100Mbps或1000Mbps)?
You can find the network adapter speed by the ethtool
command:
您可以通过ethtool
命令找到网络适配器的速度:
ethtool: query or control network driver and hardware settings
ethtool:查询或控制网络驱动程序和硬件设置
For example, to find the speed of the adapter gate, you can run
例如,要查找适配器门的速度,可以运行
# ethtool gate
If will print information like:
如果将打印以下信息:
# ethtool gate
Settings for gate:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
Here “Speed: 1000Mb/s” and “Duplex: Full” show the adapter “gate” is running in duplex mode at speed of 1000Mb/s.
此处的“速度:1000Mb / s”和“双工:完整”表示适配器“ gate”在双工模式下以1000Mb / s的速度运行。
You need to benchmark it to find how the actually speed is. The rate here is the hardware/link limit.
您需要对其进行基准测试,以了解实际速度。 此处的速率是硬件/链接限制。
翻译自: https://www.systutorials.com/how-to-find-a-network-adapters-speed-in-linux/
linux网络适配器nat