Ⅰ linux系统下,使用什么命令可以查看网卡是百兆还是千兆的,输入命令后,反馈信息是什么
在运行命令中输入”ethtool eth0“,当出现”Speed: 1000Mb/s“说明是千兆,当出现”Speed: 100Mb/s“字样说明是百兆。
Ⅱ 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
[plex half|full] //设置网口半/全双工
[autoneg on|off] //设置网口是否自协商
[port tp|aui|bnc|mii] //设置网口类型
Ⅲ linux/centos如何查看网卡是100M还是1000M
可以使用ethtool命令进行查看,使用格式ethtool 网络接口名。
以下为例,eth0为网卡版名,使用ifconfig查看当前使用的权网卡。
Speed表示网卡带宽,Duplex表示工作模式,Supported link modes表示支持的工作模式。
(3)linux怎么查电脑网卡速度扩展阅读:
ethtool命令的其它用法:
1、查询网络端口位置:ethtool -p ethX
这个命令多用于管理多网口的服务器主机,由于背板的网络端口数量大,有时候不知道那个物理端口对应eth0或其他设备号,我们就可以使用这个命令来查询。
用法:ethtool -p eth0
效果:设备号eth0对应的物理端口的两个指示灯会闪烁
2、修改网络端口速率:ethtool -s
这个命令多用于手工设置网络速率,一般千兆网卡支持10|100|1000三个速率,单位是Mbps。
用法:ethtool -s eth0 speed 1000 plex full autoneg off
效果:将设备号eth0对应的物理端口设置为速率为1000Mbps,全双工工作模式,同时关闭自动协商。
Ⅳ 怎么在linux 系统下查看网卡状态信息
方法一:
ethtool eth0 采用此启明命令可以查看到网卡相关的技术指标。
(不一定所有网卡都支持此命令)
ethtool -i eth1 加上 -i 参数查看网卡驱动。
可以尝试其它参数查看网卡相关技术参数。
方法二:
也可以通过dmesg | grep eth0 等看到网卡名字迅并(厂家)等信息。
通过查看 /etc/sysconfig/network-scripts/ifcfg-eth0 可以看到当前的网卡配亩旁迹置包括IP、网关地址等信息。
当然也可以通过ifconfig命令查看。
Ⅳ linux如何看网络带宽
使用命令:mii-tool -v
mii:是Linux下专门设置网卡工作模式的命令,详细参数如下
1. 查看网卡的工作模式,输入命令:
#mii-tool -v
eth0: negotiated 100baseTx-FD, link ok
proct info: vendor 00:aa:00, model 56 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
从以上信息中可以看出,这块网卡工作在100M全双工自适应模式下,“100BaseTx-FD”意为100M Full Duplex。
2. 更改网卡的工作模式,输入命令:
#mii-tool -F media [interface]
media可选的模式有100baseTx-FD、100baseTx-HD、10baseT-FD、10baseT-HD等。 Interface代表所选择的网卡,如eth0、eth1等,默认为eth0。
例如,设置网卡工作在10M半双工模式下,输入命令:
#mii-tool -F 10baseT-HD eth0
3. 恢复网卡的自适应工作模式,输入命令:
#mii-tool -r eth0
更详细的使用方法可以用mii-tool -h来获得。
Ⅵ linux系统如何查看网卡的带宽大小
通过ethtool工具可以查看
1、先执行ip a命令查看网卡名称。
2、例如我要查看eth0网卡的带宽,只需要执行ethtool eth0即可查看eth0网卡的带宽大小。
Ⅶ 如何查看linux系统网卡的工作模式和速率
有时候,我们需要看下系统网卡工作模式、速率等,比较常用到的命令是mii-tool、ethtool,下面简单看下即可。
查看下eth0网卡信息
[root@cloud ~]# mii-tool -v eth0
eth0: negotiated 100baseTx-FD flow-control, link ok
proct info: vendor 00:00:20, model 32 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
从上面可以看出eth0 工作 100M全双工自适应模式下
[root@cloud ~]# 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 pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner 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
[root@cloud ~]#