如何在Linux中检查以太网端口的物理状态?
发布时间:2020-12-13 18:39:49 所属栏目:Linux 来源:网络整理
导读:我想检查指定的ethX是否物理上升或下降.如何使用命令行执行此操作? 解决方法 $ethtool eth? 例如: $ethtool eth0 规定: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000
我想检查指定的ethX是否物理上升或下降.如何使用命令行执行此操作?
解决方法
$ethtool< eth?>
例如: $ethtool eth0 规定: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000001 (1) Link detected: yes (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |