Sorry for the brain-fart yesterday…I was distracted by my network where the Swisscom-box is just a modem-with-NAT. I forgot that your Swisscom box is the network router, DHCP-server, etc
.
Your original concern was, in essence, arp-table entry time-out defeating your WoL attempt.
My world is different, so what follows is speculation:
The dynamic entries in the arp-table (those generated by arp requests as the network goes about its business) DO time out-after some implementation-defined interval (for example, Cisco seems to use 14,400sec).
Manually assigning an IP-address to a device leaves it to be discovered by arp requests…a dynamic arp-table entry…that will time out.
A sleeping WoL-enabled NAS has a MAC-address “visible” to the network (else could not receive the WoL frame). [why is this “frame” called a “magic packet”???]
There may be different “phases” to dynamic arp-table entry time-out as the MAC:IP entry goes from fresh-meat to not-used-recently to timed-out, maybe with a short-circuit to don’t-work somewhere in the mix. This is probably not relevant to our discussion.
Static arp-table entries do NOT time-out, but DO get cleared on reboot.
e.g. the arp-table entry generated by:
sudo arp -s 192.168.69.70 1f:2e:3d:4c:5b:6a
does not time-out, but is cleared at reboot.
??? is this TRUE???
Wild-guess: reserving an IP in the DHCP-server does an arp -s equivalent under the hood, so DHCP-reservations do not time-out in the arp-table.
??? is this TRUE???
sudo arp -f /some/file
Can be set-up to reinstate static arp-table entries from a file
…and run automatically as the device powers up
…surviving a reboot.
I’ve seen implementations for a few Linux-species…some are not pretty.
…if the above is even close to true, it prompts an interesting question:
If the static arp-table entry disappears, it should only happen on reboot.
But reboot of what?
Swisscom-box “owns” the arp-table and the DHCP reservations so should reinstate static arp-table entries at startup using an arp -f equivalent.
So it should all “just work”.
But chez vous it doesn’t!
!!!DESUFNOC YLSUOIRES
Chris