Trying to get basic WOL (Wake on LAN) functionality so my asus rt-ac66r router can start my OMV up after power failure (UPS shutdown after 5 min).
I validated System > Network > Interface > eth0 > IP4 > WOL = YES
/etc/network/interfaces looks good
root@nas:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# eth0 network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
pre-down ethtool -s $IFACE wol g
iface eth0 inet6 manual
pre-down ip -6 addr flush dev $IFACE
Alles anzeigen
But ethtool shows setting is not present.
root@nas:~# ethtool eth0 | grep Wake
Supports Wake-on: pumbg
Wake-on: d
And I have the setting set in BIOS
Wake on LAN S4 = Enabled
NOTE: I gather this means I can only WOL from hibernate (S4) state.
https://technet.microsoft.com/en-us/library/bb693821.aspx
I validated system supports all pm-* states and even entered them one-by-one, so that's good. I even set WOL manually using ethtool -s eth0 wol g before entering the states, but still no-go.
I even looked over the debian wiki, but am reluctant to execute anything since OMV has auto-generated configs based on GUI settings (from what I can tell).
https://wiki.debian.org/WakeOnLan
But they did note to have post-up and post-down statements in the interfaces file so that WOL should work even if interface is not brought down properly.
Any help is appreciated.