home / blog

Enabling Wake On Lan on an O2 wireless router (TG587n v2)

To enable wake on lan (WOL) magic packets with an O2 wireless router you need to change the routing table entry from dynamic to static, this means the entry is always present so the router recognises the IP even when the target machine is switched off. This is true for pretty much all consumer DSL routers.

Login using SuperUser and password printed on the O2 router

telnet 192.168.1.254
Trying 192.168.1.254...
Connected to o2wirelessbox.lan.
Escape character is '^]'.
Username : SuperUser
Password : < password from label on router >

Now use the IP tool to delete and re-add the routing table entry

{SuperUser}=>ip
{SuperUser}[ip]=>arplist
{SuperUser}[ip]=>:ip arplist
Interface           IP-address             HW-address        Type
2   LocalNetwork    192.168.1.51           12:34:56:78:9a:bc DYNAMIC   < this is one we want to make static
2   LocalNetwork    192.168.1.60           12:34:56:78:9a:bd DYNAMIC

Now physically disconnect the machine you wish to make static, otherwise it will keep getting added as dynamic.

{SuperUser}[ip]=>arpdelete
intf = LocalNetwork
ip = 192.168.1.51
[hwaddr] = 12:34:56:78:9a:bc
:ip arpdelete intf=LocalNetwork ip=192.168.1.51 hwaddr=12:34:56:78:9a:bc                                                                              
{SuperUser}[ip]=>arplist
Interface           IP-address             HW-address        Type
2   LocalNetwork    192.168.1.60           12:34:56:78:9a:bd DYNAMIC

Now add again using same details

{SuperUser}[ip]=>arpadd
intf = LocalNetwork
ip = 192.168.1.51
[hwaddr] = 12:34:56:78:9a:bc
:ip arpadd intf=LocalNetwork ip=192.168.1.51 hwaddr=12:34:56:78:9a:bc
{SuperUser}[ip]=>arplist
Interface           IP-address             HW-address        Type
2   LocalNetwork    192.168.1.51           12:34:56:78:9a:bc STATIC   < now static :)
2   LocalNetwork    192.168.1.60           12:34:56:78:9a:bd DYNAMIC
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.