檢視linux系統網絡卡工作模式 速率等

2021-06-26 02:29:49 字數 1590 閱讀 5177

檢視linux

系統網絡卡工作模式、速率等

有時候,我們需要看下linux系統網絡卡工作模式、速率等,比較常

用到的命令是mii-tool、ethtool,下面簡單看下即可。

www.2cto.com  

檢視下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: 0

transceiver: internal

auto-negotiation: on

supports wake-on: pumbg

wake-on: g

current message level: 0x00000033 (51)

link detected: yes

[root@cloud ~]#

linux 下更改網絡卡工作模式

linux下更改網絡卡工作模式 現在的網絡卡一般都是10 100m自適應工作模式,在配置網絡卡引數時我們很少 考慮到它的工作模式,但在路由器和交換機 伺服器等通訊量比較大的 關鍵裝置上,我們應該為它指定正確的工作模式,這樣可以提高通訊效率。在linux環境下,們可以使用系統自帶的命令或工具實現,下面...

linux檢視網絡卡速度和模式調整

root c02b03 ethtool eth0 settings for eth0 supported ports fibre supported link modes 1000baset full supports auto negotiation yes advertised link mod...

網絡卡工作模式 混雜模式

網絡卡工作模式有4種,分別是 廣播 broadcast 模式 多播 multicast 模式 單播模式 unicast 混雜模式 promiscuous 在混雜模式下的網絡卡能夠接收一切通過它的資料,而不管該資料目的位址是否是它。如果通過程式將網絡卡的工作模式設定為 混雜模式 那麼網絡卡將接受所有流...