linux 下如何查看本机的网络速率

linux 下如何查看本机的网络速率,第1张

使用以下2个命令可以查看: 1)查看网卡型号 lspci | grep Ethernet 这个命令可以查看你的网卡设备型号,根据型号就知道是什么性能了。 2)查看网卡实际通讯速率 dmesg | grep eth0 这个命令可以列出网卡工作速率。看到 Up 1000Mps full duplex ...

有时候,我们需要看下linux系统网卡工作模式、速率等,比较常用到的命令是mii-tool、ethtool,下面简单看下即可。

查看下eth0网卡信息

[root@cloud

~]#

mii-tool

-v

eth0

eth0:

negotiated

100baseTx-FD

flow-control,

link

ok

product

info:

vendor

00:00:20,

model

32

rev

1

basic

mode:

autonegotiation

enabled

basic

status:

autonegotiation

complete,

link

ok

capabilities:

100baseTx-FD

100baseTx-HD

10baseT-FD

10baseT-HD

advertising:

100baseTx-FD

100baseTx-HD

10baseT-FD

10baseT-HD

flow-control

link

partner:

100baseTx-FD

100baseTx-HD

10baseT-FD

10baseT-HD

flow-control

从上面可以看出eth0

工作

100M全双工自适应模式下

[root@cloud

~]#

ethtool

eth0

Settings

for

eth0:

Supported

ports:

[

TP

MII

]

Supported

link

modes:

10baseT/Half

10baseT/Full

100baseT/Half

100baseT/Full

Supports

auto-negotiation:

Yes

Advertised

link

modes:

10baseT/Half

10baseT/Full

100baseT/Half

100baseT/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

Link

partner

advertised

pause

frame

use:

Symmetric

Receive-only

Link

partner

advertised

auto-negotiation:

Yes

Speed:

100Mb/s

Duplex:

Full

Port:

MII

PHYAD:

0

Transceiver:

internal

Auto-negotiation:

on

Supports

Wake-on:

pumbg

Wake-on:

g

Current

message

level:

0x00000033

(51)

Link

detected:

yes

[root@cloud

~]#


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7512084.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-06
下一篇 2023-04-06

发表评论

登录后才能评论

评论列表(0条)

保存