Wakelan
From WL-HDD Wiki
| WL-HDD Contents |
|---|
| What is the WL-HDD |
| Features |
| Pro's/con's |
| Reviews |
| Hacking |
| Inserting the HDD |
| Hacking Guides |
| Basic setup guides |
| Packages guides |
| Requests |
| Troubleshooting |
| This Wiki |
| Credits |
| Editing help |
| Contact Me |
Contents |
Prerequisites
To complete this guide, the following is assumed:
| You are running Oleg's firmware (1.9.2.7-6b or later) |
| You have harddisk partitions up and running with an extended filesystem mounted to /opt |
| You have installed the Ipkg package system. |
| You have configured your partitions to automount. |
What is it? And what is it good to?
Consider following: You have a network with several computers at home. There is also WL HDD at this network. You do not want to keep computers turned on, but sometimes you need to access files (or services) on computers that are off. You can torn them on using Wake Over Lan. You need to have WOL capable computer (most of moder computers with integrated network adapter on motherboard are WOL-capable). If you haven't integrated network adapter then there may be need to use an extra cable between adapter and motherboard. And you also need to enable WOL in BIOS. Than you can wake you computer by broadcasting a special magic packet in network. All you need is a utility that can generate such packet.
Installation
Type
ipkg install wakelan
in putty.
Its all. wakelan is now installed and ready to be used.
Usage
You need to know MAC address of computer that should be woke up and you also need to know broadcast address of your network. You can wake up your computer by typing
wakelan -b 192.168.1.255 -m 00E018AAFDE4
It immediately turns on and starts booting. You can also wake your computer from stand-by or hibernate this way. You can get more help by typing
wakelan -?
Use case
- You are e.g. in school any you need file from your home computer.
- You connect to your WL HDD using SSH and launch WOL command.
- You wait some time to computer to boot.
- You can now connect to your computer. How? It depends on your configuration. I have VPN Hamachi that connects my laptop and desktop. Or you can use OpenVPN or Windows Remote Desktop.
Simplification with wake-up script
If you are going to use it frequently and don't want to remember MAC address, you create script. For example type
nano /opt/home/wake-script
in nano type wake-up command
wakelan -b 192.168.1.255 -m 00E018AAFDE4
and save the file
Ctrl+O Ctrl+X
Do not forget to make it executable:
chmod +x /opt/home/wake-script
Now you can execute it
/opt/home/wake-script
Note: Of course, you can place the script anywhere and name it anyhow.
Troubleshooting
- You can download a command line utility WOL from http://www.matcode.com/wol.htm . You ca use it to test if your computer is properly configured to wake on LAN.
- If there is another router or switch between WL HDD and your computer, make sure that WOL packed can pass through it. It may be problem because WOL packed is a broadcast packet and broadcasts are sometimes disabled (not forwarded).
