aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
network |
public |
2024-07-11 04:42:37 -0700 |
2024-07-11 04:42:37 -0700 |
false |
20240711114237 |
|
false |
false |
|
Enable Wake-on-LAN using NMCLI |
tech-note |
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>