电竞比分网-中国电竞赛事及体育赛事平台

分享

linux/centos如何查看網(wǎng)卡是100M還是1000M?

 憂郁_小剛 2012-04-09
 

linux/centos如何查看網(wǎng)卡是100M還是1000M?檢查100兆還是千兆(1GBPS)帶寬接入

來(lái)源: 季磊的日志

如何不被忽悠?linux/centos如何查看網(wǎng)卡是100M還是1000M?檢查100兆還是千兆(1GBPS)帶寬接入,請(qǐng)看下面命令

 

[root@www.ctohome.com]# mii-tool -V
mii-tool.c 1.9 2000/04/28 00:56:08 (David Hinds)
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD, link ok
[root@www.ctohome.com]# mii-tool -v
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD, link ok
product info: vendor 00:aa:00, model 57 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
[root@www.ctohome.com]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbag
Wake-on: g
Current message level: 0×00000001 (1)
Link detected: yes

 

要測(cè)試是否是1000M端口,最保險(xiǎn)的說(shuō)用wget測(cè)試一個(gè)對(duì)方的帶寬足夠大的下載地址:

wget http://cachefly./100mb.test
–2011-03-14 22:19:12–  http://cachefly./100mb.test
Resolving cachefly.… 205.234.175.175
Connecting to cachefly.|205.234.175.175|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.test.2′

100%[===================================================================================================================>] 104,857,600 39.1M/s   in 2.6s

2011-03-14 22:19:14 (39.1 MB/s) – `100mb.test.2′ saved [104857600/104857600]

如果下載速度能超過(guò)15MB/s,那么不是100M端口了,通常就是1000M端口

如果是獨(dú)立服務(wù)器,可以通過(guò)下面命令核查網(wǎng)卡端口:
[root@www.ctohome.com ]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbag
Wake-on: g
Current message level: 0×00000001 (1)
Link detected: yes

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多