linux网络适配器nat_如何在Linux中找到网络适配器的速度?

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的速度运行。

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。


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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值