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
エトレノ1
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