Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




1347 posts

Uber Geek
+1 received by user: 121


Topic # 152188 18-Sep-2014 17:51
Send private message

After finally getting my router (Vodafone Echolife HG556a) to update dyndns.com with it's IP address, I'm now trying to set things up so I can send a Wake-On-LAN message to my computer (actually a Wake-On-WAN because I want to do it remotely).

On my router I've set up a static IP and assigned it to my computer's MAC address and tested that it is indeed being assigned the address I set up (192.168.1.99).  I've set up my router's NAT to forward port 9 to 192.168.1.99.

The IP address showed up in the router's ARP table.  I then powered the computer off and sent a magic packet to wake it up but nothing happened.  I checked the ARP table and the IP address was gone.

I then figured out that the static IP address that I had reserved wasn't being kept in the router's ARP table, it would vanish when the computer was turned off, so I used telnet and logged into the router and issued an arp add 192.168.1.99 mac-address command and then confirmed that it had been set up as a permanent address.  When viewing the ARP table via the router's web interface it shows as "Permanent".

I then turn the computer off and tried sending a magic packet to it and it worked! The computer started up fine.

But if the router turns off then it forgets the IP address that I'd added to the ARP table.  It seems that permanent isn't really permanent.  I tried adding it back in and then issuing a save command to save the router's setting to flash memory and then rebooting, but it still forgets the IP address.

Can anyone suggest anything that will get the router to remember the IP address permanently?

Create new topic
556 posts

Ultimate Geek
+1 received by user: 69

Trusted

  Reply # 1131664 18-Sep-2014 18:19
Send private message

I thought wake on lan was 0 or 1 not 9.




Apple Certified Support Professional (ACSP) 10.10, MCITP 2008



1347 posts

Uber Geek
+1 received by user: 121


  Reply # 1131792 18-Sep-2014 20:44
Send private message

nedkelly: I thought wake on lan was 0 or 1 not 9.

My understanding is that it can be any port you want as it's only used so that the router can direct the magic packet to the correct machine (i.e. set up a firewall rule to direct anything coming in on port xx to machine yy).

 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software
20883 posts

Uber Geek
+1 received by user: 4094

Trusted
Subscriber

  Reply # 1131796 18-Sep-2014 20:50
Send private message

You have only set a static reservation in the DHCP server, not a static ARP assignment, so the router has no idea what mac address to send the magic packet to.

Last I played with WOL from outside, it was done by fowarding a UDP port to the broadcast address of the lan, and then send the magic packet to that port and it would be broadcast and would work sometimes but not always.




Richard rich.ms



1347 posts

Uber Geek
+1 received by user: 121


  Reply # 1131816 18-Sep-2014 21:10
Send private message

richms: You have only set a static reservation in the DHCP server, not a static ARP assignment, so the router has no idea what mac address to send the magic packet to.

Last I played with WOL from outside, it was done by fowarding a UDP port to the broadcast address of the lan, and then send the magic packet to that port and it would be broadcast and would work sometimes but not always.


Hmm.  I set up a rule in the router to forward everything sent to UDP port 9 on to the computer's IP address.  The wake-on-lan does actually work, the computer wakes up ok.   The problem is that if the router reboots then the ARP table is cleared and the router forgets that IP 192.168.1.99 is set up for the computer.  If I turn the computer on then the router recognises it and assigns it 192.168.1.99 

I did try sending to the broadcast address, but the router won't allow me to forward packets to 192.168.1.255, it just said it was an invalid address.  I read somewhere that many routers block this.

So if an arp add command doesn't add a static ARP assignment, what does?

20883 posts

Uber Geek
+1 received by user: 4094

Trusted
Subscriber

  Reply # 1131818 18-Sep-2014 21:16
Send private message

That adds it for the current session in memory without any aging so it will not expire like the dynamic arps do.

Most routers dont have any way of making it a permanent addition that will persist across restarts, as the config is stored in nvram which needs the scripts to support the values and actually issue the commands on bootup

Is it something you can add openwrt/similar to and get a proper file system that persists across restarts that you can add your own scripts to?




Richard rich.ms

Fully Operational
3343 posts

Uber Geek
+1 received by user: 1088

Trusted
Vocus
Subscriber

  Reply # 1131819 18-Sep-2014 21:17
One person supports this post
Send private message

Why power off the router?  They are designed to be left on, and shouldn't be using bugger all power when idle.

20883 posts

Uber Geek
+1 received by user: 4094

Trusted
Subscriber

  Reply # 1131824 18-Sep-2014 21:20
One person supports this post
Send private message

Because they crash and need restarting sometimes, so a plug in timer on an adsl router to reset it in the morning means your remote place is offline for a max of a day when it does crash?




Richard rich.ms



1347 posts

Uber Geek
+1 received by user: 121


  Reply # 1131829 18-Sep-2014 21:30
Send private message

ubergeeknz: Why power off the router?  They are designed to be left on, and shouldn't be using bugger all power when idle.


I don't power off the router, it only loses power if there's a power cut or I need to move the router or make a change to the router's settings and it wants to reboot, otherwise it's on all the time.  I was just trying to make it permanent because the whole idea of the exercise is for remote access when there's no one home to turn the computers on.  If I've gone away for a couple of weeks and there's been a power cut while I'm away then the router will forget what I've got set up and I won't be able to get in.



1347 posts

Uber Geek
+1 received by user: 121


  Reply # 1131831 18-Sep-2014 21:35
Send private message

richms: That adds it for the current session in memory without any aging so it will not expire like the dynamic arps do.

Most routers dont have any way of making it a permanent addition that will persist across restarts, as the config is stored in nvram which needs the scripts to support the values and actually issue the commands on bootup

Is it something you can add openwrt/similar to and get a proper file system that persists across restarts that you can add your own scripts to?


Ah, thanks for explaining that, makes sense now.

I believe that openwrt is available for this router, but I was hoping not to muck around too much with it.

I wonder if I can telnet into the router externally and set it up if I need to?  I've got the dynamic DNS set up so the router updates a hostname with it's IP, so that part is done.  Anything else I need to do?

20883 posts

Uber Geek
+1 received by user: 4094

Trusted
Subscriber

  Reply # 1131836 18-Sep-2014 21:46
Send private message

Well you dont want to be telnetting in directly. If it supports VPN then you could get in over that, but in that case you could possibly send the WOL directly without relying on the router.




Richard rich.ms



1347 posts

Uber Geek
+1 received by user: 121


  Reply # 1131923 19-Sep-2014 07:28
Send private message

richms: Well you dont want to be telnetting in directly. If it supports VPN then you could get in over that, but in that case you could possibly send the WOL directly without relying on the router.


Why don't I want to telnet directly in?  I realise that opening external access is a bit of a security risk, but I'd set up a strong password to counter the risk.

I don't think VPN is an option.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48


Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.