linux下如何判断网卡是千兆还是万兆
  GKVCEIt4L8EM 2023年11月02日 59 0

1、ethtool

ethtool 网络接口名

#ethtool em4(网络接口名)

Settings for em4:

Supported ports: [ TP ]

Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

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: 1

Transceiver: internal

Auto-negotiation: on

MDI-X: Unknown

Supports Wake-on: g

Wake-on: d

Link detected: yes

2、查看网卡实际通讯速率

dmesg | grep eth0

这个命令可以列出网卡工作速率。看到 Up 1000Mps full duplex 就知道是千兆网卡了。

(这里 eth0是网卡的设备名,不同机器名称可能不同。可以用ifconfig 查看自己网卡的设备名)

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  jnZtF7Co41Wg   2023年12月06日   25   0   0 sedlinux数据
  uvM09mQNI0hF   2023年11月19日   27   0   0 sedshell字符串
  eHipUjOuzYYH   2023年12月06日   32   0   0 sedbootstrapIPV6
  xIUntf9oR6GI   2023年11月28日   27   0   0 sedvim基础命令
  oIa1edJoFmXP   2023年11月24日   30   0   0 AppsedVue