linux查看網卡速率
❶ 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系統下,使用什麼命令可以查看網卡是百兆還是千兆的,輸入命令後,反饋信息是什麼
在運行命令中輸入」ethtool eth0「,當出現」Speed: 1000Mb/s「說明是千兆,當出現」Speed: 100Mb/s「字樣說明是百兆。
❸ linux下怎麼判斷網卡速率
ethtool eth0 |grep speed
如果你的網卡不是eth0則要改為相應的設備名,用ifconfig查看正確的設備名。
❹ linux 下如何查看本機的網路速率
使用以下2個命令可以查看: 1)查看網卡型號 lspci | grep Ethernet 這個命令可以查看你的網卡設備型號,根據型號就知道是什麼性能了。 2)查看網卡實際通訊速率dmesg | grep eth0 這個命令可以列出網卡工作速率。看到 Up 1000Mps full plex ...
❺ 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下怎麼看網卡的速度
查看實時傳輸
sar -n DEV 1
查看網卡最大速率
ethtool eth0
❼ 如何查看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如何看網路帶寬
使用命令:mii-tool -v
mii:是Linux下專門設置網卡工作模式的命令,詳細參數如下
1. 查看網卡的工作模式,輸入命令:
#mii-tool -v
eth0: negotiated 100baseTx-FD, link ok
proct info: vendor 00:aa:00, model 56 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
從以上信息中可以看出,這塊網卡工作在100M全雙工自適應模式下,「100BaseTx-FD」意為100M Full Duplex。
2. 更改網卡的工作模式,輸入命令:
#mii-tool -F media [interface]
media可選的模式有100baseTx-FD、100baseTx-HD、10baseT-FD、10baseT-HD等。 Interface代表所選擇的網卡,如eth0、eth1等,默認為eth0。
例如,設置網卡工作在10M半雙工模式下,輸入命令:
#mii-tool -F 10baseT-HD eth0
3. 恢復網卡的自適應工作模式,輸入命令:
#mii-tool -r eth0
更詳細的使用方法可以用mii-tool -h來獲得。