Orbi WiFi 7 RBE973
Reply

Wake On Lan with R7000

millertime23
Aspirant

Re: Wake On Lan with R7000

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

Message 51 of 52
reply
Guide

Re: Wake On Lan with R7000(R7000)

millertime23

 
Do you have any method that I can enable and pass your code to R7000 on android device?
 
I am tried DOSBOX, but not able to run telnetable.exe
 
Thanks
Message 52 of 52
Top Contributors
Discussion stats
Announcements

Orbi WiFi 7