LINUX查看网卡带宽(100M还是1000M)命令
上一篇 / 下一篇 2013-07-15 10:27:41 / 个人分类:LINUX
如何不被忽悠?linux/centos如何查看网卡是100M还是1000M?检查100兆还是千兆(1GBPS)带宽接入,请看下面命令51Testing软件测试网:ay(A.LO
51Testing软件测试网a&c7b V Nb(J AIr1JtzJ d'^}7K051Testing软件测试网 dmuJ5Z6KlO
[root@www.ctohome.com]# mii-tool -V
+PZZ Np0mii-tool.c 1.9 2000/04/28 00:56:08 (David Hinds)
)CP#g6Rq:B[,I4g0SIOCGMIIREG on eth0 failed: Input/output error51Testing软件测试网~fw!Ta.L
eth0: negotiated 100baseTx-FD, link ok51Testing软件测试网3H8Xp8Q"cs8}E
`#I$g(T ]0
h)}Z2V&}JB0[root@www.ctohome.com]#mii-tool -v
v4@x5Zijo0SIOCGMIIREG on eth0 failed: Input/output error51Testing软件测试网!~gr(QC0D O8O8f
eth0: negotiated 100baseTx-FD, link ok
!e1dj1KO1{v*sX0 product info: vendor 00:aa:00, model 57 rev 0
7W'^+P*I3hU0 basic mode: autonegotiation enabled
%{7oEFSx7R0 basic status: autonegotiation complete, link ok
*|(PtFFhc!fR
o(ZS0 capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
0E`:O WGC.Lq0 advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
flow-control
;H B&D,s hS\ u(j@b0 link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
Y,rz~7\,P0
1x
uCrT:`-T0[root@www.ctohome.com]#ethtool eth051Testing软件测试网
s)JI)nuzpx?`J
Settings for eth0:51Testing软件测试网Y!k)Wx.Kzz'm!o
Supported ports: [ TP ]
&?b*\
^Y9J0 Supported link modes:
10baseT/Half 10baseT/Full
4k*}
x@K0
100baseT/Half 100baseT/Full51Testing软件测试网2h)N3S)\;X9O q-|
1000baseT/Full
{5NzR#v4r~
x%@%u0 Supports auto-negotiation: Yes51Testing软件测试网gJU9W9V2k"p!B
Advertised link modes:
10baseT/Half 10baseT/Full
u0I{Cp!q0
100baseT/Half 100baseT/Full51Testing软件测试网Dx+zHy
1000baseT/Full51Testing软件测试网1n V0tb4o%K5_c8S/F
Advertised auto-negotiation: Yes
pmOD9@v:h:Cb0D0 Speed: 100Mb/s
p
r&C*et
\
v
y6V0 Duplex: Full
C[tk*jl0 Port: Twisted Pair51Testing软件测试网0\$C!jW2M
PHYAD: 151Testing软件测试网~_/n9xE \
Transceiver: internal51Testing软件测试网%eAM\E4W
Auto-negotiation: on51Testing软件测试网$Z}k0R2p0U!i
Supports Wake-on: pumbag
[*\fa~ Dt0 Wake-on: g
NOH-{i/X{i0 Current message level: 0x00000001
(1)51Testing软件测试网
P0R1P3@ |}9B~q
Link detected: yes51Testing软件测试网
pk0u9_5V4WFyRn
1a!d `0M'FJ%s%X0
q:r0aZ*T2dp z0要测试是否是1000M端口,最保险的说用wget测试一个对方的带宽足够大的下载地址:
,R4EEv QLG0jqrJc3r0wget http://cachefly.cachefly.net/100mb.test51Testing软件测试网!d6d$C3@$OX4l
--2011-03-14 22:19:12-- http://cachefly.cachefly.net/100mb.test
3vzqo2Y%H#b/X%[2H0Resolving cachefly.cachefly.net... 205.234.175.175
P&Cl+fHW6M U@0Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
8Pz}]Y,Ge(nEX0HTTP request sent, awaiting response... 200 OK51Testing软件测试网6dFk0?1rWpr$?
Length: 104857600 (100M) [application/octet-stream]
2FeKT H x`
W0Saving to: `100mb.test.2'
bPfaC)C051Testing软件测试网o;i_#w$D8jKE:ts
100%[===================================================================================================================>]
104,857,600 39.1M/s in 2.6s 51Testing软件测试网ks6J1[3T@S
i9j.yLj/F$KRt.\r7A02011-03-14 22:19:14 (39.1 MB/s) - `100mb.test.2'
saved [104857600/104857600]
0g!r\$A{+u ])J%q j{0如果下载速度能超过15MB/s,那么不是100M端口了,通常就是1000M端口
R5`Tq~Mn WN0
r5LPf*nV`+I(]h0
如果是独立服务器,可以通过下面命令核查网卡端口:
?~7dX!M vp4}.L Y051Testing软件测试网U6vDx7Zg5B)Q51Testing软件测试网DA5`"F}
[root@www.ctohome.com ]#ethtool eth0
hQ"gFh+y!c5bLB`0Settings for eth0:
{p$]la|0 Supported ports: [ TP ]
y"^Yoi&a0 Supported link modes:
10baseT/Half 10baseT/Full
qjK#VH S:\ Xe0
100baseT/Half 100baseT/Full
&YW ?Xt}7m0
1000baseT/Full51Testing软件测试网&}e$P5C5f&W2[3e)L
Supports auto-negotiation: Yes
MwG5a'U0 Advertised link modes:
10baseT/Half 10baseT/Full51Testing软件测试网)y&Ze6]%n/x*|"`(D
100baseT/Half 100baseT/Full51Testing软件测试网.v@w2y9?#u+V%^R'Q8Q
1000baseT/Full51Testing软件测试网M2Fg&ESR8l
Advertised auto-negotiation: Yes
.A(Ycnl)fhh0 Speed:
1000Mb/s
T
QKDl4N&~3M(P\7B0 Duplex: Full
T] N Fw'W!qe
W0 Port: Twisted Pair
*\/u4T^5{8j"mAp;w8L0 PHYAD: 1