查看uvp linux网卡状态,Centos下如何检测网卡状态
由于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
閱讀(11983) | 評論(0) | 轉發(0) |
總結
以上是生活随笔為你收集整理的查看uvp linux网卡状态,Centos下如何检测网卡状态的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows10安装mysql-8.0
- 下一篇: 【题解】CF1550F Jumping