Chinaunix首页 | 论坛 | 博客
  • 博客访问: 513373
  • 博文数量: 53
  • 博客积分: 2265
  • 博客等级: 大尉
  • 技术积分: 574
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-15 16:50
文章分类

全部博文(53)

文章存档

2019年(1)

2018年(2)

2016年(2)

2015年(1)

2014年(6)

2013年(5)

2012年(7)

2011年(16)

2010年(13)

分类: LINUX

2014-08-28 13:19:39

由于ifconfig命令没法看到网卡的一些状态, 以下有5种方法查看网卡状态,是否连通网线

How to check physical Network Link Status on Linux (RHEL/Centos)
原文:

There are several ways to check Link status on RHEL,
As far i used to check by 5- ways. Refer Below

1)
 # dmesg | grep eth
.....
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
 
2)
# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: negotiated 100baseTx-FD, link ok  

3)
# ethtool eth0 | grep Link
Link detected: yes

4)
# cat /sys/class/net/eth0/operstate
up  

5)
# ip link show
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:0c:29:b0:ef:e4 brd ff:ff:ff:ff:ff:ff
3: eth1: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:0c:29:b0:ef:ee brd ff:ff:ff:ff:ff:ff


阅读(13400) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~