linux下如何看网卡是千兆还是百兆的

如题所述

linux下如何看网卡是千兆还是百兆的方法如下:

使用ethtool命令。

ethtool是Linux下用于查询及设置网卡参数的命令。

举例:

[root@hvrhub ~]# 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 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

详细参数参考:(//后面是注释,是原文的译文)

ethtool ethX /

ethtool –h //显示ethtool的命令帮助(help)

ethtool –i ethX //查询ethX网口的相关信息

ethtool –d ethX //查询ethX网口注册性信息

ethtool –r ethX //重置ethX网口到自适应模式

ethtool –S ethX //查询ethX网口收发包统计

ethtool –s ethX [speed 10|100|1000]\ //设置网口速率10/100/1000M

[duplex half|full]\ //设置网口半/全双工

[autoneg on|off]\ //设置网口是否自协商

[port tp|aui|bnc|mii]\ //设置网口类型

温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-12-23
使用ethtool命令。
ethtool是Linux下用于查询及设置网卡参数的命令。

举例:
[root@hvrhub ~]# 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 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

详细参数参考:(//后面是注释,是原文的译文)
ethtool ethX /
ethtool –h //显示ethtool的命令帮助(help)
ethtool –i ethX //查询ethX网口的相关信息
ethtool –d ethX //查询ethX网口注册性信息
ethtool –r ethX //重置ethX网口到自适应模式
ethtool –S ethX //查询ethX网口收发包统计
ethtool –s ethX [speed 10|100|1000]\ //设置网口速率10/100/1000M
[duplex half|full]\ //设置网口半/全双工
[autoneg on|off]\ //设置网口是否自协商
[port tp|aui|bnc|mii]\ //设置网口类型
第2个回答  2020-11-25

关注船长,带你了解更多有关数码科技的小知识!

第3个回答  2018-02-24
先用ifconfig查看网卡信息

比如eth0网卡带宽:ethtool eth0
第4个回答  2016-11-23
用ifconfig命令查看RX bytes和TX bytes这两项参数。详情
    在线客服官方服务
      官方网站费用查询充值交费业务办理宽带提速
相似回答