Ubuntu WOL (Wake On LAN) Support

Ok, I won't go into my rant about how ridiculous this is but just so everyone is aware there is more to WOL in Ubuntu than just enabling it in the BIOS.

First we need to set the WOL setting using ethtool

# ethtool -s eth0 wol g

View the changes

# ethtool eth0

Make the changes persistent by editing /etc/network/interfaces and adding the following line after the dhcp up command

up ethtool -s eth0 wol g

Now edit the /etc/init.d/reboot and /etc/init.d/halt command to not shutdown the interface by removing the "-i" option in the commands

Shutdown the system and test (assuming you have also set WOL support in your BIOS)!

Leave a Reply