https://www.pangodream.es/make-your-wol ... uly-sticky
purtroppo però, quando provo a "svegliare" la macchina dopo averla spenta da un altro computer attravero il comando "wakeonlan -i IP_INTERFACCIA_DI_USCITA MAC_ADDRESS" la macchina non si accende e purtroppo non ne comprendo il motivo.
nel BIOS del computer il protocollo WoL è attivato e l'interfaccia di rete eno1 del server è predisposta per ricevere il pacchetto WoL:
user@server:~$ sudo ethtool eno1
Settings for eno1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g <-------------------------------------------------- WoL attivo!
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
l'unica cosa su cui ho dei dubbi è il servizio che ho creato per WoL che si, esiste, ma lo vedo sempre nello stato di inactive (dead):
user@server:~$ sudo service wol status
[sudo] password for andrea:
○ wol.service - Enable Wake On Lan
Loaded: loaded (/etc/systemd/system/wol.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sun 2023-12-10 14:29:03 UTC; 2min 29s ago
Process: 1052 ExecStart=/sbin/ethtool -s eno1 wol g (code=exited, status=0/SUCCESS)
Main PID: 1052 (code=exited, status=0/SUCCESS)
CPU: 1ms
Dec 10 14:29:03 optiplex9020 systemd[1]: Starting Enable Wake On Lan...
Dec 10 14:29:03 optiplex9020 systemd[1]: wol.service: Deactivated successfully.
Dec 10 14:29:03 optiplex9020 systemd[1]: Finished Enable Wake On Lan.
cosa posso fare per far funzonare il WoL sul mio server?
