Hello, good day
I'm looking for some initial ideas, perhaps from experience of similar, to an issue between openwrt router and a linux box regarding network connection issues. I am not providing lots of specific detail, because for me it is general question and ideas for thought at this stage.
Question: is it likely that the openwrt (v18.x) based BT HH5 router is the reason the network connection is not re-established to a linux box following said box awaking from rtcwake sleep period; or is it the linux box, or both and if any of those, what might be the place to start explore for a reason/solution ?
Background:
Linux box using dhcpcd to obtain ip address from openwrt router (BT Home Hub 5). On the HH5 OpenWRT, the linux box is configured to receive a 'static ip address' to ensure it gets the same address each time. The lease time is left as default. The linux box is unchanged (in its net config) from when a previous router was being used that was swapped out for the BTHH5 Openwrt. Initially there appeared no problem and network connection was working fine (getting the static address, lease renewal etc).
Then the issue appeared of network connection not always re-establishing.
At midnight the linux box uses rtcwake to put itself to sleep and then wakeup several hours later.
When the box awakes, sometimes, not always, the linux box is not accessible on the network, as if the network connection has not re-established somehow; perhaps by being dropped by the router whilst asleep (perhaps across a lease time boundary or not...not sure on that).
On the previous router, this was never an issue. It is only happening since the Openwrt router installation and again, nothing has been changed on the linux box as such. This suggests it is something on the Openwrt BTHH5 config.
Thoughts so far, is using dhcp, rather than static ip setup, on the linux box to get a static address lease (that still is subjected to lease time [unless set to infinite, but that did not cure]) the ideal way to ensure the same address ? If not, what's best and in any case the current setup is provided for by Openwrt so why might there be an issue.
Thanks for considering this and offering some general ideas at this stage.