linux下如何判断网卡是千兆还是万兆 您所在的位置:网站首页 怎样知道电脑网卡是百兆还是干兆的 linux下如何判断网卡是千兆还是万兆

linux下如何判断网卡是千兆还是万兆

2024-01-19 06:43| 来源: 网络整理| 查看: 265

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 查看自己网卡的设备名)



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有