How to enable Wake on Lan (WOL) with Advanced TomatoUSB wifi router firmware
- Multiple WAN support (3G/4G/Static IP/Cable/ADSL2)
- Virtual Wireless
- FTP/Media server via USB
- BiTorrent Client via USB
- UPS support
- OpenVPN client and server
- Tinc VPN server and much more.
I also connected my 2 bay NAS to this server. Sometimes I need to wake up my NAS using WOL.
What is WOL?
Wake-on-LAN (WOL) is an Ethernet networking standard that allows a server to be turned on by a network message. You need to send ‘magic packets’ to wake-on-LAN enabled ethernet adapters and motherboards, to switch on the called systems.
Option #1 Use ssh and ether-wake command on your wifi router
I log in to my TomatoUSB powered router using the following command:
$ ssh root@wifi-router-name
$ ssh root@wifi-router-IP-here
$ ssh email@example.com
ether-wake command syntax
The ether-wake command send a magic packet to wake up sleeping nas server. Of course MAC must be a station address (00:11:22:33:44:55) or a hostname with a known ‘ethers’ entry. I prefer MAC address:
ether-wake MAC ## Send a magic packet to this MAC
ether-wake -b MAC ## Broadcast the packet
ether-wake -i eth0 MAC ## Interface to use (default eth0)
ether-wake -i eth0 -p PASSWORD MAC ## Append 4/6 byte PASSWORD to the packet
# ether-wake 00:11:32:11:15:FC
Option #2 Use Advanced TomatoUSB web interface
This is much easier option. Fire the web-browser and type your wifi routers URL:
Click on Tools > WOL tab > Type 00:11:32:11:15:FC in MAC Address List box > Wake up button:
That is all. Now I do not have to go to another room to wake up my little NAS server.
Also, see my previous posts on the same topic
You can also use etherwake on Linux or Unix-like system:
- HowTo: Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ]
- Ubuntu Linux: Install Wake On Lan Client For Server
- FreeBSD: Wake Up Servers Using Wake-on-LAN ( WOL ) Command
- Mac OS X: Wake Up Servers Using Wake-on-LAN ( WOL ) Command Utility
- Simple Shell Script To Wake Up NAS Devices Using Linux or Unix Computer
- How To Wakeup Backup Nas Server and Mirror Files Using Rsync in Linux
Next time I intend to write about how to install (flash) Advanced TomatoUSB wifi router from Linux, FreeBSD or MacOS desktop.
Share this on: