Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.32 KB

enable-wake-on-lan-using-nmcli.md

File metadata and controls

50 lines (42 loc) · 1.32 KB
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
enable-wake-on-lan-using-nmcli
network
public
2024-07-11 04:42:37 -0700
2024-07-11 04:42:37 -0700
false
20240711114237
attachments/20240711114237.html
false
false
wake-on-lan
lan
network
nmcli
wol
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>