linux如何查看网卡速率
⑴ 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 系统 上下行网络传输速度该如何查看
用ifstat命令可以看,如果没有可以下载安装一下
⑶ 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系统下,使用什么命令可以查看网卡是百兆还是千兆的,输入命令后,反馈信息是什么
在运行命令中输入”ethtool eth0“,当出现”Speed: 1000Mb/s“说明是千兆,当出现”Speed: 100Mb/s“字样说明是百兆。
⑸ 在Linux下怎么查看网络接口的速率
|写个脚本查看:脚本如下、加x权限、执行就可看以了
#!/bin/bash
while [ "1" ]
do
eth=$1
RXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $2}')
TXpre=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $10}')
sleep 1
RXnext=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $2}')
TXnext=$(cat /proc/net/dev | grep $eth | tr : " " | awk '{print $10}')
clear
echo -e "\t RX `date +%k:%M:%S` TX"
RX=$((${RXnext}-${RXpre}))
TX=$((${TXnext}-${TXpre}))
if [[ $RX -lt 1024 ]];then
RX="${RX}B/s"
elif [[ $RX -gt 1048576 ]];then
RX=$(echo $RX | awk '{print $1/1048576 "MB/s"}')
else
RX=$(echo $RX | awk '{print $1/1024 "KB/s"}')
fi
if [[ $TX -lt 1024 ]];then
TX="${TX}B/s"
elif [[ $TX -gt 1048576 ]];then
TX=$(echo $TX | awk '{print $1/1048576 "MB/s"}')
else
TX=$(echo $TX | awk '{print $1/1024 "KB/s"}')
fi
echo -e "$eth \t $RX $TX "
done
⑹ linux 如何查询网卡带宽
Linux系统下可以通过下面命令核查网卡带宽:
[root@www]#ethtooleth0
Settingsforeth0:
Supportedports:[TP]
Supportedlinkmodes:10baseT/Half10baseT/Full
100baseT/Half100baseT/Full
1000baseT/Full
Supportsauto-negotiation:Yes
Advertisedlinkmodes:10baseT/Half10baseT/Full
100baseT/Half100baseT/Full
1000baseT/Full
Advertisedauto-negotiation:Yes
//其它的信息不用管它,下面Speed这一行就是网卡目前的带宽
Speed:1000Mb/s
Duplex:Full
Port:TwistedPair
PHYAD:1
Transceiver:internal
Auto-negotiation:on
SupportsWake-on:pumbag
Wake-on:g
Currentmessagelevel:0x00000001(1)
Linkdetected:yes
⑺ 如何查看linux系统网卡的工作模式和速率
有时候,我们需要看下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 ~]#
⑻ linux 下如何查看本机的网络速率
使用以下2个命令可以查看:
1)查看网卡型号
lspci
|
grep
Ethernet
这个命令可以查看你的网卡设备型号,根据型号就知道是什么性能了。
2)查看网卡实际通讯速率 dmesg
|
grep
eth0
这个命令可以列出网卡工作速率。看到
Up
1000Mps
full
plex
...
⑼ linux/centos如何查看网卡是100m还是1000m
使用以下2个命令可以查看:
1)查看网卡型号
lspci | grep Ethernet
这个命令可以查看你的网卡设备型号,根据型号就知道是什么性能了。
2)查看网卡实际通讯速率
dmesg | grep eth0
这个命令可以列出网卡工作速率。看到 Up 1000Mps full plex 就知道是千兆网卡了。
(这里 eth0是网卡的设备名,不同机器名称可能不同。可以用ifconfig 查看自己网卡的设备名)
⑽ linux下怎么看网卡的速度
查看实时传输
sar -n DEV 1
查看网卡最大速率
ethtool eth0