Fedora 41 and Wake on LAN

In the BIOS enable the correct Wake-on-LAN option for your motherboard. Then boot into Fedora and display NIC status (my device is enp5s0)

sudo ethtool enp5s0

search for line with 'Wake-on', in my case was displayed “Wake-on: d” (disabled). In order for WOL to work, after reboot Wake-on should be in mode “g” (MagicPacket).

Systemd-Networkd Option

Create the file /etc/systemd/network/50-wired.link

sudo nano /etc/systemd/network/50-wired.link

[Match]
MACAddress=11:22:33:44:55:66

[Link]
NamePolicy=kernel database onboard slot path
MACAddressPolicy=persistent
WakeOnLan=magic

Write in your MAC address instead of 11:22:33:44:55:66, save and after reboot.

NetworkManager Option

Run this command to show interface settings.

sudo nmcli connection show


NAME                      UUID                                  TYPE       DEVICE     
Wired connection 1        3.......-....-....-....-...........d  ethernet   enp5s0

Then run this command to edit the connection with WOL capabilities.

sudo nmcli connection modify "Wired connection 1" 802-3-ethernet.wake-on-lan magic

Finally, run this command to apply to device.

sudo nmcli device reapply enp5s0

Now check the status again with:

sudo ethtool enp5s0

Wake-on should be in mode “g” permenently.