WOL not working AFTER 2nd shutdown

N0X

New Member
Jul 10, 2021
1
0
1
33
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!