linux 查看网卡是否万兆_linux 如何查看网卡带宽

1.先查看网卡

# ifconfig

docker0: flags=4163 mtu 1500

inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255

inet6 fe80::42:acff:fe45:985 prefixlen 64 scopeid 0x20

ether 02:42:ac:45:09:85 txqueuelen 0 (Ethernet)

RX packets 141370815 bytes 100379736898 (93.4 GiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 140997320 bytes 61931276928 (57.6 GiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eno16777984: flags=4163 mtu 1500

inet 10.10.22.175 netmask 255.255.255.0 broadcast 10.10.22.255

inet6 fe80::250:56ff:fe8b:469e prefixlen 64 scopeid 0x20

ether 00:50:56:8b:46:9e txqueuelen 1000 (Ethernet)

RX packets 443262260 bytes 377347425802 (351.4 GiB)

RX errors 0 dropped 489 overruns 0 frame 0

TX packets 234458160 bytes 423618667541 (394.5 GiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

...

2.查看指定网卡带宽

# sudo ethtool eno16777984

Settings for eno16777984:

Supported ports: [ TP ]

Supported link modes: 1000baseT/Full

10000baseT/Full

Supported pause frame use: No

Supports auto-negotiation: No

Advertised link modes: Not reported

Advertised pause frame use: No

Advertised auto-negotiation: No

Speed: 10000Mb/s

Duplex: Full

Port: Twisted Pair

PHYAD: 0

Transceiver: internal

Auto-negotiation: off

MDI-X: Unknown

Supports Wake-on: uag

Wake-on: d

Link detected: yes

查看speed,表示为万兆网卡!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值