Skip to content

Wake on LAN

Nicolas TIREL edited this page Dec 20, 2022 · 2 revisions

Official documentation : https://help.ubuntu.com/community/WakeOnLan

To test if the machine is compatible with Wake on LAN, first execute the following command :

sudo ethtool <NIC> the Network Interface Controller can be found with ifconfig

And you need to find the letter g in Supports Wake-on and Wake-on lines.

This machine supports WakeOnLAN

If the machine supports wake-on but there is a d in wake-on, execute the command :

sudo ethtool -s <NIC> wol g

Finally, you can shut down the machine whenever you want, and from another computer, you can use the wakeonlan ubuntu package to restart the computer :

wakeonlan -i <IP> <MAC>

Clone this wiki locally