分類:
1)通過mii-tool指令
[root@localhost root]# mii-tool
eth0: negotiated 100basetx-fd, link ok
eth1: no link
或[root@localhost 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
或[root@localhost root]# mii-tool -w
21:20:33 eth0: negotiated 100basetx-fd, link ok
21:20:33 eth1: no link
//mii-tool主要是用於配置網絡卡工作模式的指令,同時也可以進行查詢、監控等工作!
2)
[root@localhost /]#/etc/init.d/network status
configured devices:
lo eth0 eth1
currently active devices:
lo eth0
等同於[root@localhost root]# service --status-all
............
............
configured devices:
lo eth0 eth1
currently active devices:
lo eth0
............
............
3)ifconfig -a
[root@localhost /]# ifconfig -a
eth0 link encap:ethernet hwaddr 00:09:6b:09:08:fc
inet addr:192.168.10.1 bcast:192.168.10.255 mask:255.255.255.0
inet6 addr: fe80::209:6bff:fe09:8fc/64 scope:link
up broadcast running multicast mtu:1500 metric:1
rx packets:106732953 errors:0 dropped:0 overruns:0 frame:0
tx packets:104379788 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
rx bytes:2351331877 (2.1 gib) tx bytes:391707945 (373.5 mib)
base address:0x2500 memory:fbfe0000-fc000000
eth1 link encap:ethernet hwaddr 00:09:6b:09:08:fd
broadcast multicast mtu:1500 metric:1
rx packets:0 errors:0 dropped:0 overruns:0 frame:0
tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)
base address:0x2540 memory:fbfc0000-fbfe0000
4)ethtool
#ethtool eth0
settings for eth0:
supported ports: [ mii ]
supported link modes: 10baset/half 10baset/full
100baset/half 100baset/full
1000baset/half 1000baset/full
supports auto-negotiation: yes
advertised link modes: 10baset/half 10baset/full
100baset/half 100baset/full
1000baset/half 1000baset/full
advertised auto-negotiation: yes
speed: 100mb/s
duplex: full
port: twisted pair
phyad: 1
transceiver: internal
auto-negotiation: on
supports wake-on: g
wake-on: d
current message level: 0x000000ff (255)
link detected: yes
#ethtool eth1
settings for eth1:
supported ports: [ mii ]
supported link modes: 10baset/half 10baset/full
100baset/half 100baset/full
1000baset/half 1000baset/full
supports auto-negotiation: yes
advertised link modes: 10baset/half 10baset/full
100baset/half 100baset/full
1000baset/half 1000baset/full
advertised auto-negotiation: yes
speed: unknown! (0)
duplex: half
port: twisted pair
phyad: 1
transceiver: internal
auto-negotiation: on
supports wake-on: g
wake-on: d
current message level: 0x000000ff (255)
link detected: no
從上面可以看出eth0 處於連線狀態,eth1沒有連線
linux下網絡卡相關檢視設定
查整機硬體資訊命令 dmesg 檢視網絡卡裝置相關 dmesg grep eth 檢視網絡卡eth0資訊 dmesg grep eth0 使用ethtool命令檢視指定網絡卡資訊 ethtool eth0 使用 mii tool命令檢視指定網絡卡情況 mii tool v eth1 為了使用lspc...
檢視linux系統下網絡卡是否連線網線的狀態
網上找到的資料,對我現在非常有用,現轉到這裡做備忘 一 通過mii tool指令 root linuxzgf mii tool mii tool主要是用於配置網絡卡工作模式的指令,同時也可以進行查詢 監控等工作!二 ethtool root linuxzgf ethtool eth0 setting...
linux檢視網絡卡是否打滿
1 檢視linux系統有幾塊網絡卡 ifconfig a 或者使用如下命令 cat proc net dev lspci grep i eth 2 檢視網絡卡的寬頻 ethtool命令用於獲取乙太網卡的配置資訊,或者修改這些配置 這個命令比較複雜,功能特別多回頭寫乙個命令解釋 ethtool eth...