文章页正文上
今天小编给大家分享一下linux如何检查网卡是否正常的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。 linux检查网卡是否正常的方法:1、通过“mii-tool”指令查看网卡状态;2、通过“network status”查看网络状态;3、通过“ifconfig -a”命令查看linux中所有网络接口的信息;4、通过“ethtool”命令查询网卡信息即可。查看Linux下网卡状态或 是否连接1) 通过mii-tool指令
[root@localhostroot]#mii-tool eth0:negotiated100baseTx-FD,linkok eth2:nolink
或
[root@localhostroot]#mii-tool-v eth0:negotiated100baseTx-FD,linkok productinfo:vendor00:50:43,model2rev3 basicmode:autonegotiationenabled basicstatus:autonegotiationcomplete,linkok capabilities:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HD advertising:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HDflow-control linkpartner:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HD eth2:nolink productinfo:vendor00:50:43,model2rev3 basicmode:autonegotiationenabled basicstatus:nolink capabilities:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HD advertising:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HDflow-control
或
[root@localhostroot]#mii-tool-w 21:20:33eth0:negotiated100baseTx-FD,linkok 21:20:33eth2:nolink //mii-tool主要是用于配置网卡工作模式的指令,同时也可以进行查询、监控等工作!
2)
[root@localhost/]#/etc/init.d/networkstatus Configureddevices: loeth0eth2 Currentlyactivedevices免费云主机、域名: loeth0
等同于
[root@localhostroot]#service--status-all ............ ............ Configureddevices: loeth0eth2 Currentlyactivedevices: loeth0 ............ ............
3)ifconfig -a
[root@localhost/]#ifconfig-a eth0Linkencap:EthernetHWaddr00:09:6B:09:08:FC inetaddr:192.168.10.1Bcast:192.168.10.255Mask:255.255.255.0 inet6addr:fe80::209:6bff:fe09:8fc/64Scope:Link UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1 RXpackets:106732953errors:0dropped:0overruns:0frame:0 TXpackets:104379788errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:100 RXbytes:2351331877(2.1GiB)TXbytes:391707945(373.5MiB) Baseaddress:0x2500Memory:fbfe0000-fc000000 eth2Linkencap:EthernetHWaddr00:09:6B:09:08:FD BROADCASTMULTICASTMTU:1500Metric:1 RXpackets:0errors:0dropped:0overruns:0frame:0 TXpackets:0errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:1000 RXbytes:0(0.0b)TXbytes:0(0.0b) Baseaddress:0x2540Memory:fbfc0000-fbfe0000
4)ethtool
#ethtooleth0 Settingsforeth0: Supportedports:[MII] Supportedlinkmodes:10baseT/Half10baseT/Full 100baseT/Half100baseT/Full 1000baseT/Half1000baseT/Full Supportsauto-negotiation:Yes Advertisedlinkmodes:10baseT/Half10baseT/Full 100baseT/Half100baseT/Full 1000baseT/Half1000baseT/Full Advertisedauto-negotiation:Yes Speed:100Mb/s Duplex:Full Port:TwistedPair PHYAD:1 Transceiver:internal Auto-negotiation:on SupportsWake-on:g Wake-on:d Currentmessagelevel:0x000000ff(255) Linkdetected:yes #ethtooleth2 Settingsforeth2: Supportedports:[MII] Supportedlinkmodes:10baseT/Half10baseT/Full 100baseT/Half100baseT/Full 1000baseT/Half1000baseT/Full Supportsauto-negotiation:Yes Advertisedlinkmodes:10baseT/Half10baseT/Full 100baseT/Half100baseT/Full 1000baseT/Half1000baseT/Full Advertisedauto-negotiation:Yes Speed:Unknown!(0) Duplex:Half Port:TwistedPair PHYAD:1 Transceiver:internal Auto-negotiation:on SupportsWake-on:g Wake-on:d Currentmessagelevel:0x000000ff(255) Linkdetected:no
从上面可以看出eth0 处于连接状态,eth2没有连接以上就是“linux如何检查网卡是否正常”这篇文章的所有内容,感谢各位的阅读!相信大家阅读完这篇文章都有很大的收获,小编每天都会为大家更新不同的知识,如果还想学习更多的知识,请关注云技术行业资讯频道。
今天小编给大家分享一下win8如何取消开始界面的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解免费云主机、域名一下吧。 1、 首先在桌面上按下“Win +…
文章页内容下