[Kea-users] Lease lifetime

Marcos Renato da Silva Junior marcos.silva at unesp.br
Fri Sep 4 12:49:40 UTC 2020


Thanks Thomas,

But I still a bit confused about default to min-valid-lifetime and 
max-valid-lifetime.

Em 04/09/2020 09:03, Thomas Markwalder escreveu:
> Hello:
>
> You need only set calculate-tee-times to true. The percentage values, 
> t1-percent and t2-percent, default to .5 and .875 respectively.
>
>
>
> On 9/3/20 7:47 PM, Marcos Renato da Silva Junior wrote:
>>
>> Hi,
>>
>>
>> 1 - "Beginning with Kea 1.6.0 the lease valid lifetime is extended 
>> from a single value to a triplet with minimum, default and maximum 
>> values using |min-valid-lifetime|, |valid-lifetime| and 
>> |max-valid-lifetime|. When the client does not specify a lifetime the 
>> default value is used, when it specifies using a DHCP option code 51 
>> this value is used if it is not less than the minimum (in this case 
>> the minimum is returned) or greater than the maximum (in this case 
>> the maximum is used)."
>>
>> What is the default value for |min-valid-lifetime| and 
>> |max-valid-lifetime| ?
>>
>> I presume |valid-lifetime| right ?
>>
>>
>> 2 - "According to RFC 2131 <https://tools.ietf.org/html/rfc2131>, 
>> servers should send values for T1 and T2 that are 50% and 87.5% of 
>> the lease lifetime, respectively. By default, kea-dhcp4 does not send 
>> either value. It can be configured to send values that are specified 
>> explicitly or that are calculated as percentages of the lease time."
>>
>> So explicitly :
>>
>> # DHCPv4 configuration starts on the next line
>> "Dhcp4":  {
>>
>> # First we set up global values
>>      "valid-lifetime":  4000,
>>      "renew-timer":  1000,
>>      "rebind-timer":  2000,
>>
>> And calculated as percentages :
>>
>> # DHCPv4 configuration starts on the next line
>> "Dhcp4":  {
>>
>> # First we set up global values
>>      "valid-lifetime":  4000,
>> |"calculate-tee-times": true, |
>> Or :
>>
>> ||
>> # DHCPv4 configuration starts on the next line
>> "Dhcp4":  {
>>
>> # First we set up global values
>>      "valid-lifetime":  4000,
>> |"calculate-tee-times": true, |     ||"t1-percent": 0.5, "t2-percent": 0.875,||
>>
>>
>> It's the right way?
>>
>>
>> Best,
>> ||||||
>>
>> -- 
>> Marcos Renato da Silva Junior
>>
>> _______________________________________________
>> ISC funds the development of this software with paid support subscriptions. Contact us athttps://www.isc.org/contact/  for more information.
>>
>> To unsubscribe visithttps://lists.isc.org/mailman/listinfo/kea-users.
>>
>> Kea-users mailing list
>> Kea-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
>
>
> _______________________________________________
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users

-- 
Marcos Renato da Silva Junior
Universidade Estadual Paulista - Unesp
Faculdade de Engenharia de Ilha Solteira - FEIS
Departamento de Engenharia Elétrica - DEE
15385-000 - Ilha Solteira/SP
(18) 3743-1164

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200904/ce973e60/attachment-0001.htm>


More information about the Kea-users mailing list