首页 > 系统服务 > 详细

linux 系统查看网卡是否连接

时间:2014-12-05 19:36:14      阅读:389      评论:0      收藏:0      [点我收藏+]

方法一: ifconfig 

[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:5A:03:D0 
          inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe5a:3d0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90931 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77139 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8985535 (8.5 MiB)  TX bytes:6054556 (5.7 MiB)

 

如果是link 证明有网线连接

 

方法二: mii-tool

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

 

这种方法更直观 直接显示网卡是否连接

linux 系统查看网卡是否连接

原文:http://only013.blog.51cto.com/6979724/1586665

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!