Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2917234
  • 博文数量: 454
  • 博客积分: 4860
  • 博客等级: 上校
  • 技术积分: 6375
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 10:08
个人简介

10年工作经验,专研网站运维。

文章分类

全部博文(454)

文章存档

2017年(11)

2016年(13)

2015年(47)

2014年(36)

2013年(147)

2012年(64)

2011年(136)

分类: 系统运维

2013-01-28 16:16:55

说明: 重启网卡会造成短暂的网络断开,大概丢失6个ping包。30秒吧。

 

1. 查看网卡是否连接网线

[root@PLASPACSHCN13 ~]# mii-tool

2. 查看指定网卡是否连接网线

[root@PLASPACSHCN14 ~]# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok

3. 给网卡配置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”  这个表示没有连接网线。
阅读(3544) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~