dhcp-client and IPv4 lease times

Simon dhcp1 at thehobsons.co.uk
Wed Dec 8 21:33:31 UTC 2021


Mike <the.lists at mgm51.com> wrote:

> From the environment passed to the script specified in dhclient4.conf, I
> see, among others, the following variables:
> 
> new_dhcp_lease_time=45605
> new_dhcp_rebinding_time=34805
> new_dhcp_renewal_time=2405
> 
> 
> In the log for the dhclient daemon I see the following entry (sanitized):
> 
> dhclient: ... -- renewal in 2121 seconds.
> 
> 
> I have two questions:
> 
> 1) Why is the renewal time specified in the log different than any of
> the renewal times passed in the environment?
> 
> 2) Why is not the renewal time taken to be half the lease time?

What lease time do you get ?
The lease you get is probably nothing like any of the values you’ve set at the client end. You might need to do some packet capture on the interface to see what the server is sending to you.

Simon



More information about the dhcp-users mailing list