linux查看网卡速率命令_linux查看网卡千兆还是万兆

2022-11-08 11:06:45 浏览数 (2)

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、lspci

当前是博通BCM5709千兆网卡Gigabit(万兆网卡显示为10-Gigabit)

#lspci -vvv | grep Ethernet

01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 GigabitEthernet (rev 20)

Subsystem: Dell PowerEdge R710 BCM5709 Gigabit Ethernet

Product Name: Broadcom NetXtreme II Ethernet Controller

01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)

Subsystem: Dell PowerEdge R710 BCM5709 Gigabit Ethernet

Product Name: Broadcom NetXtreme II Ethernet Controller

02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)

Subsystem: Dell PowerEdge R710 BCM5709 Gigabit Ethernet

Product Name: Broadcom NetXtreme II Ethernet Controller

02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)

Subsystem: Dell PowerEdge R710 BCM5709 Gigabit Ethernet

Product Name: Broadcom NetXtreme II Ethernet Controller

pcilib: sysfs_read_vpd: read failed: Connection timed out

小知识:

Gigabit是数据存储的单位,通常用符号Gbit或Gb表示。它的换算公式:1 Gb = 10的9次方 bits = 1,000,000,000 bits 。

另一个常见的单位是Gibibit,gibibit是用来表示二进制换算的,1 gibibit = 2的30次方 bits = 1,073,741,824 bits。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/184186.html原文链接:https://javaforall.cn

0 人点赞