Re: Behavior with "--lastlease" when DHCP server comes back
Roy Marples
Thu Apr 21 15:44:34 2016
Hi
On 20/04/2016 20:08, Shahid Mahmood wrote:
> Wanted to know the behavior if dhcpcd is started with --lastlease option
> and it actually re-uses the last lease when dhcp server disappears.
>
> 1) Does it try to renew the lease in case the server comes back or does
> it keep that previous lease forever? If it does retry, how often?
It keep the lease forever.
However, it should also DISCOVER a DHCP server in accordance with the
backoff (so once every 60 +/- 1 seconds). Any response is then treated
for a normal renew.
I've not tested this option for a long time, but it should still work.
> 2) Same question, with additional --persistent option.
lastlease actually requires the persistent option.
Without it, dhcpcd would destroy the lease at exit.
Roy
Archive administrator: postmaster@marples.name