Skip to content

Wake On Lan

Wake On Lan or WOL is an old standard where you flood the local subnet with a broadcast address and a “signal” to wake-up a machine.

In this project the “Magic Packet” method is used. There are a variety of wikis online that demonstrate how this should work (eg: https://wiki.archlinux.org/title/Wake-on-LAN, https://github.com/jpoliv/wakeonlan).

The command line looks something like this…

wakeonlan -p 5 -i 192.168.57.255 b8:ae:ed:7e:57:54

In this project, scripts are created for each known host (defined in Ansible Playbook gateway-install/defaults/main.yaml).

Note some computers claim Wake-On-Lan support however there are two types of WOL support. One form by the BIOS and one supported by OS. The latter requires software to set the WOL flags on every boot and does not retain this setting during a power supply interruption.

This project will install a systemd service (/etc/systemd/system/wol.service) to set the WOL in the NIC device using the k8s-install Ansible Playbook.