本篇文章给大家谈谈Linux如何查速率,以及linux命令测网速对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
- 1、linux如何判断网络是百兆还是千兆
- 2、linux/centos如何查看网卡是100M还是1000M
- 3、如何查看linux系统网卡的工作模式和速率
- 4、Linux查看实时硬盘读写速度
- 5、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:
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]\
//设置网口类型
linux/centos如何查看网卡是100M还是1000M
可以使用ethtool命令进行查看,使用格式ethtool 网络接口名。
以下为例,eth0为网卡名,使用ifconfig查看当前使用的网卡。
Speed表示网卡带宽,Duplex表示工作模式,Supported link modes表示支持的工作模式。
扩展资料:
ethtool命令的其它用法:
1、查询网络端口位置:ethtool -p ethX
这个命令多用于管理多网口的服务器主机,由于背板的网络端口数量大,有时候不知道那个物理端口对应eth0或其他设备号,我们就可以使用这个命令来查询。
用法:ethtool -p eth0
效果:设备号eth0对应的物理端口的两个指示灯会闪烁
2、修改网络端口速率:ethtool -s
这个命令多用于手工设置网络速率,一般千兆网卡支持10|100|1000三个速率,单位是Mbps。
用法:ethtool -s eth0 speed 1000 duplex full autoneg off
效果:将设备号eth0对应的物理端口设置为速率为1000Mbps,全双工工作模式,同时关闭自动协商。
如何查看linux系统网卡的工作模式和速率
有时候,我们需要看下linux系统网卡工作模式、速率等,比较常用到的命令是mii-tool、ethtool,下面简单看下即可。
查看下eth0网卡信息
[root@cloud
~]#
mii-tool
-v
eth0
eth0:
negotiated
100baseTx-FD
flow-control,
link
ok
product
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:
Transceiver:
internal
Auto-negotiation:
on
Supports
Wake-on:
pumbg
Wake-on:
g
Current
message
level:
0x00000033
(51)
Link
detected:
yes
[root@cloud
~]#
Linux查看实时硬盘读写速度
可以参考以下资料
1. 了解hdparm命令Linux上使用hdparm命令查看硬盘信息和测试硬盘读写速度。Linux测试硬盘读写速度用什么命令了解hdparm命令
以CentOS7.5为例。默认情况下,并没有安装该工具。[root@zcwyou ~]# yum -y install hdparm2. 查看硬盘信息:/dev/sda:SG_IO: bad/missing sense data, sb[]: 70 1c 05 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3. 显示硬盘的摘要信息
linux 下如何查看本机的网络速率
使用以下2个命令可以查看: 1)查看网卡型号 lspci | grep Ethernet 这个命令可以查看你的网卡设备型号,根据型号就知道是什么性能了。 2)查看网卡实际通讯速率 dmesg | grep eth0 这个命令可以列出网卡工作速率。看到 Up 1000Mps full duplex ...
关于Linux如何查速率和linux命令测网速的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。