Ubuntu Wake On Lan Setup

Assuming you have enabled Wake On Lan (WoL) from your bios the guide below by Techno Tim shows all the steps to enable WoL on various systems.

On Ubuntu Server be sure to follow the steps listed in the "Using Netplan" section.

For Ubuntu Desktop the steps vary due to Ubuntu Desktop defaulting to Network Manager as the network management plane. You can use the commands below to enable WoL using nmcli.

# show your available NICs
nmcli con show

# get configuration for a NIC
nmcli c show "Name of NIC from pervious command" | grep 802-3-ethernet.wake-on-lan

# update config
nmcli c modify "NIC Name" 802-3-ethernet.wake-on-lan magic

From my experience the "Without Netplan" documentation that Tim has did not work, which lead me to find nmcli information.

The Ultimate Guide to Wake on LAN for Windows, MacOS, and Linux
What is Wake on LAN and why is it so hard?