centos下检查网卡状态

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

How to check physical Network Link Status on Linux (RHEL/Centos)
原文:http://linuxsupporttips.wordpress.com/2011/08/01/how-to-check-physical-network-link-status-on-linux-rhelcentos/

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 

转载于:https://www.cnblogs.com/ch3n3y/p/5930620.html

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值