Skip to content

Wake On Lan

negan07 edited this page Feb 24, 2019 · 10 revisions

Dependencies: busybox

Some Docs:

Wake-on-LAN

The Wake On Lan functionality allows to turn on (Wake Up) a network machine or device from router console or GUI.

The Wake On Lan functionality must be enabled on the related devices (generally can be setup on BIOS menu or Ethernet menu) and its MAC Address must be known.

The Wake on lan magic packet can be sent through the ether-wake busybox applet command: this applet is not available on original busybox set of commands and, if not already present as a package, it must be installed typing:

opkg update && opkg install busybox

or using the package manager web GUI:

Ancistrus->Package Manager->Upgrade/Install a Package->busybox-xxx

ether-wake Usage

ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC

Send a magic packet to wake up sleeping machines. MAC must be a station address (00:11:22:33:44:55) or a hostname with a known 'ethers' entry.

Options:

        -b              Send wake-up packet to the broadcast address
        -i iface        Interface to use (default eth0)
        -p pass         Append four or six byte password PW to the packet

Console

To wake up a network device with a known Mac Address type:

ether-wake -b -i $(anc nvram rget lan_if) (-p <4/6_bytes_password_if_needed>) <mac_address>

Note that $(anc nvram rget lan_if) is mostly group1 and -p <4/6_bytes_password_if_needed> parameter option can be almost always omitted.

Web GUI

Device List

To fetch the device mac address easily, it may comes in help the mac address dhcp reservation list including device name if any and reserved ip address.

Selecting one of the device on the list the related mac address will be pasted in the next MAC address box. The password, if needed, must be inserted manually.

Click then: Apply to send the magic packet to the device.

Click Cancel to discard changes.

MAC Address

If the MAC Address of the device to turn on is not present on the above list, it can be typed manually in this box in the form: 00:11:22:33:44:55 (see the man help usage documentation above).

Password

Some network devices may need a password to be woken up.

In this case, insert the 4 bytes or 6 bytes password in the form: aa:bb:cc:dd or aa:bb:cc:dd:ee:ff (see the man help usage documentation above).

Click then: Apply to send the magic packet to the device.

Click Cancel to discard changes.