It’s extremely easy to enable Wake-on-LAN support on Fedora using NMCLI.
The first step is to turn it on/enable it in the BIOS/UEFI/Firmware. That’ll be slightly different for everybody, but you want to enable it on your network card.
It’s then simply a case of running the below command, against your ethernet interface.
nmcli connection modify "<ethernet-interface>" 802-3-ethernet.wake-on-lan magic
Reboot the machine and then check it’s enabled. If you see magic
you’re good.
$ nmcli connection show "<ethernet-interface>" | grep 802-3-ethernet.wake-on-lan
802-3-ethernet.wake-on-lan: magic
802-3-ethernet.wake-on-lan-password: --
You can now test it by shutting the machine down, and then sending a Wake-on-LAN packet from another device (I use wol
- sudo dnf install wol
).
wol <mac-address-of-device-to-power-on>