Wake-On-Lan

For WOL I will use the tool wakelan by Christopher Chan-Nui which is in the ipkg list for our convenience. It will allow us to wake up a PC for instance via IP or MAC address.


Install wakelan

Login as "root" and type:

/opt/bin/ipkg update
/opt/bin/ipkg install wakelan

Usage

You can use the following options while kicking on your device:

Usage: wakelan [options] [mac] [broadcast] [port]
-b addr    broadcast address
-m mac     mac address of host
-p port    UDP port to broadcast to
-v[v]      version

My PC has a fixed local IP, so in my case I will use this instead of its MAC address (which didn't work somehow with a quick test).

Waking up my PC

My PC's local IP address is 192.168.0.2 so the command to wake up my PC (which is in SLEEP mode) is as follows:

wakelan -b 192.168.0.2

... et voilà my PC welcomes me with its logon prompt. This isn't as convenient as having a Wake Up feature inside the e-TRAYz web interface but better than nothing.

Alternative: ether-wake

ether-wake is another WOL tool by Donald Becker which worked with my MAC addresses. Let's assume my PC had the MAC address AA:BB:CC:DD:EE:FF then I would wake it up like this:

ether-wake AA:BB:CC:DD:EE:FF

This will wake up my PC. Now it's not always convenient to keep the MAC address in your memory so there's nothing better than using an alias for your PC. Let's call my PC "mypc" and add the alias in /etc/ethers with:

echo AA:BB:CC:DD:EE:FF mypc > /etc/ethers

Next time I want to wake up my PC I will only have to type:

ether-wake mypc

That's all. And if you want to add more aliases to the list use ">>" instead of ">" to append it to the file:

echo A1:B2:C3:D4:E5:F6 mypc2 >> /etc/ethers

Enjoy the insomnia feature.