<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div></div></div></div></div></div></div><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Fri, Dec 10, 2021 at 12:06 PM Mike <<a href="mailto:the.lists@mgm51.com">the.lists@mgm51.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/8/2021 7:43 PM, Glenn Satchell wrote:<br>
> <br>
> <br>
> On 2021-12-09 08:33, Simon wrote:<br>
>> Mike <<a href="mailto:the.lists@mgm51.com" target="_blank">the.lists@mgm51.com</a>> wrote:<br>
>><br>
>>> From the environment passed to the script specified in dhclient4.conf, <br>
>>> I<br>
>>> see, among others, the following variables:<br>
>>><br>
>>> new_dhcp_lease_time=45605<br>
>>> new_dhcp_rebinding_time=34805<br>
>>> new_dhcp_renewal_time=2405<br>
>>><br>
>>><br>
>>> In the log for the dhclient daemon I see the following entry <br>
>>> (sanitized):<br>
>>><br>
>>> dhclient: ... -- renewal in 2121 seconds.<br>
>>><br>
>>><br>
>>> I have two questions:<br>
>>><br>
>>> 1) Why is the renewal time specified in the log different than any of<br>
>>> the renewal times passed in the environment?<br>
>>><br>
>>> 2) Why is not the renewal time taken to be half the lease time?<br>
>><br>
>> What lease time do you get ?<br>
>> The lease you get is probably nothing like any of the values you’ve<br>
>> set at the client end. You might need to do some packet capture on the<br>
>> interface to see what the server is sending to you.<br>
>><br>
>> Simon<br>
> <br>
> Those settings are more like hints to the dhcp server about the settings <br>
> you would like. The server configuration decides what values are used, <br>
> and you don't really have much control over that.<br>
<br>
I understand that.  I've noticed that the lease length hint usually work<br>
when it is shorter than what the ISP will provide, but it does not work<br>
when it  is longer.<br>
<br>
Thanks for the reply.<br></blockquote><div><br></div><div><br></div><div>Are you setting all three?</div><div>min-lease-time </div><div>default-lease-time</div><div>max-lease time</div><div><br></div><div>I set all three the same.  I have seen others set them to different values, and then the client can request a time somewhere between min and max, or just take the default.</div><div><br></div><div>-- </div><div>Bob Harold</div><div> </div></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"10","compose-window":{"secure":false}}"></div>