On my previous router (Linksys WRT3200ACM running OpenWRT) I had configured Wake-on-LAN so that I can wake up the device remotely when I’m on the road, i.e. WoL from WAN.
If I recall correctly all steps what I needed to do on OpenWRT I had to:
- static lease for the machine
- make a port forward (port X forwarded into IP Y port Z)
- add into
/etc/rc.local
(requiresip-full
package):ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br-lan ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br-lan
On my RUTX50 I have already configured:
- static lease
- port forward
- added into the
Custom scripts
the same as in/etc/rc.local
above
with this setup the WoL works from WAN but only few hours after the target machine has been powered off.
So far I have found out that as long Status -> Routes -> Static
page shows a MAC address for the target machine the WoL works but when MAC address is shown just as -
then it does not work.
I tried to add into Custom Scripts
(IP and MAC redacted):
ip neigh change 192.168.1.xxx lladdr xx:xx:xx:xx:xx:xx nud permanent dev br-lan
ip neigh add 192.168.1.xxx lladdr xx:xx:xx:xx:xx:xx nud permanent dev br-lan
But still the Status -> Routes -> Static
page after some hours shows the MAC just as -
and WoL does not work.
How can I configure a static ARP entry?