🌲 treerockets blog

Wake on Lan with ethtool (and Synology)

enable WOL with ethtool

Tools that should be installed: ethtool, wakeonlan

we assume eth0 is the network-card we want to use WOL with (so the server we want to turn on) Check if the servers network-card we want to wake supports WOL: sudo ethtool eth0

check the output and look for:

.
..
...
Supports Wake-on: pumbg
Wake-on: d
...
..
.

"d" means deactivated, we want "g" sudo ethtool -s eth0 wol g

Now, wake your target machine: wakeonlan <mac_adress_of_target> we can be more specific if necessary (it should not be): wakeonlan -i <ipv4_or_ipv6_adress_of_target> -p 9 <mac_adress_of_target>

If it's not a synology, but some random linux server, you may want to check if the service is enabled and enable it if need be:

sudo systemctl status wol-enable.service
sudo systemctl enable wol-enable.service

why did I write this?

Synology states, that all (except listed) models have WOL. There is no specific button I could find to enable this, and all available documentation points me to the clue that it should work. Well. It does not.

So I had to enable SSH, login as admin, execute ethtool as root and enable it. Why? I have no clue. I canΒ΄t be the first one to notice this. This is not written anywhere and for someone like me not a big deal, why this is not in synology's documentation is beyond me.

#WOL #wake on lan