Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
- Next »
Re: Wake On Lan with R7000
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-09-24
01:06 PM
2015-09-24
01:06 PM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-01-15
08:19 PM
2016-01-15
08:19 PM
Re: Wake On Lan with R7000(R7000)
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
- « Previous
- Next »