您的位置:首页 > 运维架构 > Linux

Linux下网线网卡状态检测工具

2013-02-25 13:36 429 查看
问题:RHEL服务器,有双网卡(只用了一根网线),安装系统时手动配置仅使用eth0,使用静态IP。换网卡接口后可检测到IP,但无法连网。别人不知情。

一、mii-tool工具

#mii-tool eth0
eth0: no link


二、ethtool

# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: no


三、service network status 查看活跃设备

# service network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: