linux 查看网卡连接网线,查看网卡是否连接网线
說明: 重啟網(wǎng)卡會造成短暫的網(wǎng)絡(luò)斷開,大概丟失6個ping包。30秒吧。
1. 查看網(wǎng)卡是否連接網(wǎng)線
[root@PLASPACSHCN13 ~]# mii-tool
2. 查看指定網(wǎng)卡是否連接網(wǎng)線
[root@PLASPACSHCN14 ~]# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok
3. 給網(wǎng)卡配置ip地址,然后ping這個ip地址即可。
4. [root@PLASPACSHCN14 ~]# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
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 pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 2
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
Link detected: no
“Link detected: no”? 這個表示沒有連接網(wǎng)線。
總結(jié)
以上是生活随笔為你收集整理的linux 查看网卡连接网线,查看网卡是否连接网线的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2012年9月TIOBE编程社区指数
- 下一篇: 电脑pdf怎么转换成excel表格呢?