在 Linux 中,我使用“ip link”命令来关闭 PC 上的特定以太网端口。执行此操作时,端口 LED 会关闭一段时间,然后再次打开(但如果我使用“ip link”检查,连接仍然处于关闭状态)。
当网络连接断开时,有没有办法让 LED 保持关闭状态?
ip 一个
4: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:e0:1a:9f:81:87 brd ff:ff:ff:ff:ff:ff
altname enp3s0
ethtool eno1
Settings for eno1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
2500baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
2500baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: off (auto)
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
ethtool -i eno1
driver: igc
version: 6.5.5-zen1-1-zen
firmware-version: 1073:8754
expansion-rom-version:
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes