NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Totti
Feb 20, 2014Aspirant
Wake On Lan with R7000
Hi, i get my new R7000 today and have an Asus RT-N66U before. The Asus WOL work fine but i found no way to use WOL with the R7000. With the R7000 i cant use 255.255.255.255 as Subnetmask to use ...
- Aug 10, 2015
Hi Riker.
Now that I've confirmed that the removal of my solution was a moderation, I'll try repeating it from memory (I was actually using this thread, bookmarked, to remember how to do it).
- Download TelnetEnable from here: https://github.com/LuKePicci/NetgearTelnetEnable/blob/master/binaries/windows/telnetenable.exe?raw=true
- Open a DoS/Command Prompt on a PC directly connected to the same LAN and type 'telnetenable.exe <router-IP> <router-MAC> admin <admin-password>'
- Telnet to the router
- Type 'arp -i br0 -s x.x.x.x mm:mm:mm:mm:mm:mm' where x.x.x.x is the WoL destination IP address (not .255) and mm... is
the WoL destination's MAC address
You should then have a static ARP entry in your router. Set up forwarding of port 9/UDP to your device you want to wake and it should work.
- Dave
ViperGeek
May 25, 2015Apprentice
Thanks for the quick reply. I actually had a reserved DHCP address for my WoL destination, but the ARP cache entry times out anyway.
However, I did find a solution:
- Run the new TelnetEnable (see http://wiki.openwrt.org/toh/netgear/telnet.console)
- Telnet to router and type: # arp -i br0 -s x.x.x.x mm:mm:mm:mm:mm:mm where x.x.x.x is the WoL destination IP address (not .255) and mm... is the WoL destination's MAC address
Now I have PERM entry, confirmed via the 'arp' shell command, for the WoL target.
- - Dave
millertime23
Sep 23, 2015Aspirant
This solution works perfectly. Thanks for sharing ViperGeek. The only issue is the new ARP PERM entry gets cleared every time the router is rebooted. Then I have to go back and re-do all the entries. This could be a hassle after a power failure. Are you aware of a way to save these settings permanently? I'm running an R7000 on 1.0.4.30_1.1.67 firmware
- ViperGeekSep 23, 2015Apprentice
millertime23 wrote:Are you aware of a way to save these settings permanently? I'm running an R7000 on 1.0.4.30_1.1.67 firmware
Hi MillerTime.
Unfortunately, I've found no way to have these commands auto-execute on boot. I messed around with /etc/init.d, but I believe the R7000 uses a volatile filesystem in that everything is recreated based on config at startup. Nothing written to /etc, for example, will survive a reboot either.
- Dave
- millertime23Sep 23, 2015Aspirant
I was worried that might be the case. Maybe a workaround would be to write a .bat file that will execute in windows task scheduler
- millertime23Sep 24, 2015Aspirant
I wrote up a visual basic script that can be executed in windows task scheduler (ie once a day, every PC start, once a week, etc). It may be handy in the event of a power loss or router reboot. You can also save this script anywhere on your pc and with one click have your ARP entries restored. Copy and paste the code below. Edit it with your IP addresses and MAC addresses (per ViperGeek's instructions), then save it as "whatever.vbs"
Option Explicit On Error Resume Next Dim WshShell set WshShell=CreateObject("WScript.Shell") WshShell.run "cmd.exe" WScript.Sleep 1000 WshShell.Sendkeys "telnetenable.exe 192.168.1.1 ROUTERMACADDRESS admin routerpassword{ENTER}" WScript.Sleep 1000 WshShell.SendKeys "telnet 192.168.1.1{ENTER}" WScript.Sleep 1000 WshShell.SendKeys "arp -i br0 -s x.x.x.x mm:mm:mm:mm:mm:mm where x.x.x.x is the WoL destination IP address (not .255) and mm... is the WoL destination's MAC address{ENTER}" WScript.Sleep 2000 WshShell.SendKeys "arp{ENTER}" WScript.Sleep 3000 WshShell.SendKeys "exit{ENTER}" WScript.Sleep 1000 WshShell.SendKeys "exit{ENTER}" WScript.Quit
The last "arp{ENTER}" command is optional. I just added that and a 3 second delay to verify the "PERM" entry was successful