日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux检测网卡步骤,linux网卡检测命令

發布時間:2025/4/16 linux 56 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux检测网卡步骤,linux网卡检测命令 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

linux下查看網卡是否有物理網線連接的命令

這個比較有用,幫助判斷網絡故障

/sbin/mii-tool

mii-tool(這是Linux下專門設置網卡工作模式的命令)

1. 查看網卡的工作模式,輸入命令:

mii-tool -v

SIOCGMIIREG on eth0 failed: Input/output error

eth0: negotiated 100baseTx-FD, link ok

product info: vendor 00:50:43, model 11 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

SIOCGMIIREG on eth1 failed: Input/output error

eth1: negotiated 100baseTx-FD, link ok

product info: vendor 00:50:43, model 11 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

從以上信息中可以看出,這兩塊網卡工作在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來獲得。

mii-tool: invalid option -- h

usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]

-V, --version ? ? ? ? ? ? ? display version information

-v, --verbose ? ? ? ? ? ? ? more verbose output

-R, --reset ? ? ? ? ? ? ? ? reset MII to poweron state

-r, --restart ? ? ? ? ? ? ? restart autonegotiation

-w, --watch ? ? ? ? ? ? ? ? monitor for link status changes

-l, --log ? ? ? ? ? ? ? ? ? with -w, write events to syslog

-A, --advertise=media,... ? advertise only specified media

-F, --force=media ? ? ? ? ? force specified media technology

media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,

(to advertise both HD and FD) 100baseTx, 10baseT

?

總結

以上是生活随笔為你收集整理的linux检测网卡步骤,linux网卡检测命令的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。