檢視Linux下網絡卡狀態
阿新 • • 發佈:2019-01-10
ip link 命令 或者 通過mii-tool指令
[[email protected] root]# mii-tooleth0: negotiated 100baseTx-FD, link ok
eth1: no link
或
[[email protected] root]# mii-tool -v
eth0: negotiated 100baseTx-FD, link ok
product info: vendor 00:50:43, model 2 rev 3
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
eth1: no link
product info: vendor 00:50:43, model 2 rev 3
basic mode: autonegotiation enabled
basic status: no link
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
或
[[email protected] root]# mii-tool -w
21:20:33 eth0: negotiated 100baseTx-FD, link ok
21:20:33 eth1: no link
//mii-tool主要是用於配置網絡卡工作模式的指令,同時也可以進行查詢、監控等工作!
2)
[ [email protected] /]# /etc/init.d/network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0
等同於
[[email protected] root]# service --status-all
............
............
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0
............
............
3)ifconfig -a
[[email protected] /]# ifconfig -a