Wake on Lan
NetworkManager
NetworkManager provides Wake-on-LAN ethernet support. One way to enable Wake-on-LAN by magic packet is through nmcli.
First, search for the name of the wired connection:
nmcli con show
NAME UUID TYPE DEVICE
eno1 612e300a-c047-4adb-91e2-12ea7bfe214e 802-3-ethernet enp0s25
By following, one can view current status of Wake-on-LAN settings:
nmcli c show "eno1" | grep 802-3-ethernet.wake-on-lan
802-3-ethernet.wake-on-lan: default
802-3-ethernet.wake-on-lan-password: --
Enable Wake-on-LAN by magic packet on that connection:
nmcli c modify "eno1" 802-3-ethernet.wake-on-lan magic
Then reboot, possibly two times. To disable Wake-on-LAN, substitute magic
with ignore
.