Re: Extending a lease when dhcp server is offline (similar to lastleaseextend)
Roy Marples
Tue Sep 01 18:42:15 2020
Hi Matthew
On 01/09/2020 18:27, Matthew Clarkson wrote:
After applying these patches I see the device replying to the last lease address during the expired state and there are periodic discover requests being broadcast. This is great.
But when the server comes back online, there is a small problem. I believe that the server is arping the previous lease ip, when the discover comes in the server sees the client is using that ip, then offers a different address. Attached is an example.
I'm not sure what the solution would be, but the older client appears to periodically unlink the previous ip address, attempt discover, then relink to the old ip.
At this point your probably better using the git master branch as this was fixed
a while ago.
I think these are the commits:
https://roy.marples.name/cgit/dhcpcd.git/commit/?id=f021b552b5c53cfa785bc5f8df1c97fa8ffa9b86
https://roy.marples.name/cgit/dhcpcd.git/commit/?id=3ce2165cf3934267a28d79bbb9e1bde2e3e4462a
Roy
Archive administrator: postmaster@marples.name