WOL not working AFTER 2nd shutdown

N0X

New Member
Jul 10, 2021
1
0
1
34
Hey guys,

I've got a weird one here.
As the title states. WOL works just fine.
After I shut it down using the GUI and try again, WOL does NOT work until after I unplug/replug the power cord.

MOBO: Asrock TRX40 Creator.
Ideally, I'd only use the 2.5G LAN for WOl and the 10G Lan for all data transfers.

Thoughts?
 
Enable wol:
Install Ethool
Code:
apt-get update && apt-get install ethtool
Find your NIC (Network Interface Card) ID:
Code:
root@pve:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    altname enp6s0f0
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.50/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::86a9:3eff:fef1:d46/64 scope link
       valid_lft forever preferred_lft forever
In this case is eno1, before create a config file:
Code:
[Unit]
Description=Wake-on-LAN for <interface id>
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/sbin/ethtool -s <interface id> wol g
ExecStop=/usr/sbin/ethtool -s <interface id> wol g

[Install]
WantedBy=multi-user.target
finally enable and put on services:
Code:
systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
systemctl daemon-reload
Try use poweroff command to turn off your pc. I hope help.