Wake-on-LAN (EtherWake)
Wake-on-LAN (WoL) is a technology that allows a powered-off or suspended device to be remotely turned on by sending a special network message called a Magic Packet to its network interface. The EtherWake package provides a simple command-line utility to send these Magic Packets and wake up devices in the local network. On NethSecurity, EtherWake is available in the official repositories but it is not installed by default.
The target device must support Wake-on-LAN (WoL) and have the feature enabled in its BIOS/UEFI and network card settings. Otherwise, it will not respond to Magic Packets.
Installation
Install the package with the commands that match your NethSecurity version.
If you are running NethSecurity 8.8, use:
apk update
apk add etherwake
If you are running NethSecurity 8.7.2 or older, use:
opkg update
opkg install etherwake
Starting from version 8.7.2, extra packages are automatically reinstalled after system upgrade. For earlier versions and for additional information, refer to this documentation: Restore extra packages.
Usage
To wake up a device in the LAN, you must know:
- the
MAC addressof the device to be powered on - the
NethSecurity network interfaceto which the device is connected (e.g.eth0)
The basic command is:
etherwake -i <interface> <MAC>
Example:
etherwake -i eth0 00:11:22:33:44:55