ethtool <NIC> | grep 'Wake-on:'
Wake-on: g - that means it's enabled.ethernet-wol g into your network configuration in /etc/network/interfaces, like so for example:iface <NIC> inet manual
# [...]
ethernet-wol g
post-up /sbin/ethtool -s <NIC> wol g instead of ethernet-wol g:iface <NIC> inet manual
# [...]
post-up /sbin/ethtool -s <NIC> wol g
<NIC> obviously refers to the name of your network interface. Make sure to configure your actual (physical) NIC and not for example the bridge you use for your VMs (vmbr0 or similar). Usually goes without saying, but still wanted to mention it, just to make sure.enp5s0, my configuration looks something like this:auto enp5s0
iface enp5s0 inet static
address 192.168.1.100/24
gateway 192.168.1.1
post-up /sbin/ethtool -s enp5s0 wol g
ethtool -s enp2s0f0 wol g
root@pve:~# ethtool enp2s0f0 | grep 'Wake-on:'
Supports Wake-on: g
Wake-on: g
root@pve:~# ethtool enp2s0f0 | grep 'Wake-on:'
Supports Wake-on: g
Wake-on: d
I don't understand how to make it persistent.
/etc/network/interfaces as I had described above. Does WOL work, even it it's not persistent?We use essential cookies to make this site work, and optional cookies to enhance your experience.