LINUX查看网卡带宽(100M还是1000M)命令

上一篇 / 下一篇  2013-07-15 10:27:41 / 个人分类:LINUX

y'A~:H tTse5D0如何不被忽悠?linux/centos如何查看网卡是100M还是1000M?检查100兆还是千兆(1GBPS)带宽接入,请看下面命令51Testing软件测试网E5J'yVu,^ j`

*L W;p(R,dVxy0 51Testing软件测试网R-]3W(d!w.@ h!b

\F!W7lr0[root@www.ctohome.com]# mii-tool -V51Testing软件测试网"D)S(\{y
mii-tool.c 1.9 2000/04/28 00:56:08 (David Hinds)
\;lH&C TB0SIOCGMIIREG on eth0 failed: Input/output error51Testing软件测试网"U D$g6sP9q
eth0: negotiated 100baseTx-FD, link ok

xprATO&Y;b051Testing软件测试网9r4ua5K:e1YC"Zh


es:f*\9X&sQ}8o0[root@www.ctohome.com]#mii-tool -v51Testing软件测试网 Ux-A:|*o,? _~
SIOCGMIIREG on eth0 failed: Input/output error
)ZR s Tk(e2HN0eth0: negotiated 100baseTx-FD, link ok
{T3S5b/U7I5d0  product info: vendor 00:aa:00, model 57 rev 0
:oSiR^J1|0  basic mode:   autonegotiation enabled
i7SNN1e)B |0  basic status: autonegotiation complete, link ok51Testing软件测试网NV]*{UaR6h$N
  capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
;t4f*B:` ]ik'PU0  advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control51Testing软件测试网|Z q$mZDH
  link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
51Testing软件测试网%Zi6D&pZ"C

_#F @J*|.A!ZLT+j0
#`7zFmC4BX:l6b u0[root@www.ctohome.com]#ethtool eth0
|?4LK,Y2~\0Settings for eth0:
.J0Q N'\fUX0        Supported ports: [ TP ]51Testing软件测试网[xX7?']
        Supported link modes:   10baseT/Half 10baseT/Full
J L+Ze8rG5g J1b{0                                100baseT/Half 100baseT/Full
T;AO$QZd0                                1000baseT/Full
@P~o L4D/X(W0n0        Supports auto-negotiation: Yes
P7lZ"T3i$G+m bn2M0        Advertised link modes:  10baseT/Half 10baseT/Full51Testing软件测试网z!`4s|(mP:dOe
                                100baseT/Half 100baseT/Full
7Y} D'WG&@2g:sV0                                1000baseT/Full51Testing软件测试网J{5M x4vQ.S,T8`
        Advertised auto-negotiation: Yes
k&lT[+H ~0        Speed: 100Mb/s51Testing软件测试网*GZt!k,c8Nh4SD
        Duplex: Full51Testing软件测试网)`Q6_+H E!n
        Port: Twisted Pair51Testing软件测试网C2v;S ]ZMQ8?(X
        PHYAD: 151Testing软件测试网+~f9d,kQ-fi
        Transceiver: internal51Testing软件测试网F/JD*[*\'vg3SZ
        Auto-negotiation: on
'_P(d@]fuNR0        Supports Wake-on: pumbag
*TOZTT0        Wake-on: g51Testing软件测试网7PL i[R
        Current message level: 0x00000001 (1)
[p'rK}Gc)p0        Link detected: yes

[J#k$E&I&g&q$Z? h051Testing软件测试网T4?.Hk/`p

 

+lJ` y:xdr cK z051Testing软件测试网 z~ ^sI&n

测试是否是1000M端口,最保险的说用wget测试一个对方的带宽足够大的下载地址:51Testing软件测试网Sb0xi2kt*O%s

r{*me7~0ae~4d0wget http://cachefly.cachefly.net/100mb.test51Testing软件测试网 Q+p1FT;ot9~j
--2011-03-14 22:19:12--  http://cachefly.cachefly.net/100mb.test
c&Jd |8B[ J c0Resolving cachefly.cachefly.net... 205.234.175.17551Testing软件测试网"J9lA T ]:x{,f%ch8a
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.51Testing软件测试网7J ]V2e2Ugg]
HTTP request sent, awaiting response... 200 OK51Testing软件测试网 hd0D}Wy?7p+rA
Length: 104857600 (100M) [application/octet-stream]
;u4PM#d | b:m FP T#R0Saving to: `100mb.test.2'
#Y7oa-fnOOK$apE Zd0
nHOQ;y(?/L3s0100%[===================================================================================================================>] 104,857,600 39.1M/s   in 2.6s   
R-I9}x7B/y&`6s(h.^051Testing软件测试网Jb'U \)a.pd*p!n
2011-03-14 22:19:14 (39.1 MB/s) - `100mb.test.2' saved [104857600/104857600]
51Testing软件测试网5C%^4C0j%M ?

51Testing软件测试网rL2y(fjby

如果下载速度能超过15MB/s,那么不是100M端口了,通常就是1000M端口51Testing软件测试网4X0r-Cj3o~2u_
 51Testing软件测试网 NOE5Xu"sL
 

X#i)zE9t/\xW'sA0

+i a gk Dx0如果是独立服务器,可以通过下面命令核查网卡端口:

y8]4R*q QA'XFtw1i051Testing软件测试网#V&y*n7P X

51Testing软件测试网f,`C]IV
[root@www.ctohome.com ]#ethtool eth051Testing软件测试网!Xux1I!gb)}d
Settings for eth0:
(vyCkr.l nM0        Supported ports: [ TP ]
L8o?4u1tV0C1~0        Supported link modes:   10baseT/Half 10baseT/Full51Testing软件测试网(nX8v ?k(W
                                100baseT/Half 100baseT/Full
G;p"L0~)Ta j4cWU0                                1000baseT/Full51Testing软件测试网1|U)xy&q"I
        Supports auto-negotiation: Yes
bm.hd i+\ny0        Advertised link modes:  10baseT/Half 10baseT/Full51Testing软件测试网2s-O,@Uv'wf
                                100baseT/Half 100baseT/Full51Testing软件测试网1aI;w5]3QWI
                                1000baseT/Full51Testing软件测试网E/L O@(DdZ0I
        Advertised auto-negotiation: Yes51Testing软件测试网\$MTz(k
       Speed: 1000Mb/s
~Q3}3?w{$p0        Duplex: Full
:c&T | ~o!B&nheS0        Port: Twisted Pair51Testing软件测试网 i~!CIn
        PHYAD: 151Testing软件测试网?-Ubc'fe s
        Transceiver: internal51Testing软件测试网/j*Qjk \ MY zP
        Auto-negotiation: on
:[8k[?v%sc-}0        Supports Wake-on: pumbag
MbNJ;\#Skj8a,d0        Wake-on: g51Testing软件测试网Eo9tT'V"P!I5z|gnD
        Current message level: 0x00000001 (1)
vwO [ `6xHu0        Link detected: yes

F'{2eFaT0

 

:c-D+\+D] \1I4n h0

TAG: 100M 1G

jayowenhui的个人空间 引用 删除 jayowenhui   /   2013-07-16 11:39:43
1
 

评分:0

我来说两句

luoriver

luoriver

北漂一族,80后,计算机专业,从事SIP相关软件测试3年,热爱生活,崇尚运动。 爱看WWE、公开课。爱钻“牛角尖”,这就是我:luorivr!!!!!

日历

« 2024-04-23  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 345759
  • 日志数: 96
  • 图片数: 1
  • 建立时间: 2012-12-27
  • 更新时间: 2014-05-03

RSS订阅

Open Toolbar