<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><span class="tlid-translation translation" lang="en"><span
title="">Thanks Thomas</span>,</span></p>
<p><span class="tlid-translation translation" lang="en"><span
title="" class="">But I still a bit confused about default to
min-valid-lifetime and max-valid-lifetime.</span></span></p>
<div class="moz-cite-prefix">Em 04/09/2020 09:03, Thomas Markwalder
escreveu:<br>
</div>
<blockquote type="cite"
cite="mid:7ea36b0e-012d-55e3-7fd4-1f707dab57a3@isc.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<tt>Hello:<br>
<br>
You need only set calculate-tee-times to true. The percentage
values, t1-percent and t2-percent, default to .5 and .875
respectively.<br>
<br>
<br>
</tt><br>
<div class="moz-cite-prefix">On 9/3/20 7:47 PM, Marcos Renato da
Silva Junior wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e32ec4d4-2bfe-7e94-b19a-05db3af91fb8@unesp.br">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p>Hi, </p>
<div class="moz-forward-container">
<p><br>
</p>
<p>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 <code class="docutils
literal notranslate"><span class="pre">min-valid-lifetime</span></code>,
<code class="docutils literal notranslate"><span class="pre">valid-lifetime</span></code>
and <code class="docutils literal notranslate"><span
class="pre">max-valid-lifetime</span></code>. 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)."</p>
<p><span class="tlid-translation translation" lang="en"><span
title="" class="">What is the default value for </span></span><span
class="tlid-translation translation" lang="en"><span
title="" class=""><code class="docutils literal
notranslate"><span class="pre">min-valid-lifetime</span></code>
and <code class="docutils literal notranslate"><span
class="pre">max-valid-lifetime</span></code> ? <br>
</span></span></p>
<p><span class="tlid-translation translation" lang="en"><span
title="" class="">I presume </span></span><span
class="tlid-translation translation" lang="en"><span
title="" class=""><span class="tlid-translation
translation" lang="en"><span title="" class=""><code
class="docutils literal notranslate"><span
class="pre">valid-lifetime</span></code></span></span>
right ?</span></span></p>
<p><br>
</p>
<p>2 - "According to <a class="reference external"
href="https://tools.ietf.org/html/rfc2131"
moz-do-not-send="true">RFC 2131</a>, 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."</p>
<p>So explicitly :<br>
</p>
<pre><span class="c1"># DHCPv4 configuration starts on the next line</span>
<span class="s2">"Dhcp4"</span><span class="p">:</span> <span class="p">{</span>
<span class="c1"># First we set up global values</span>
<span class="s2">"valid-lifetime"</span><span class="p">:</span> <span class="mi">4000</span><span class="p">,</span>
<span class="s2">"renew-timer"</span><span class="p">:</span> <span class="mi">1000</span><span class="p">,</span>
<span class="s2">"rebind-timer"</span><span class="p">:</span> <span class="mi">2000</span><span class="p">,
</span></pre>
<p>And calculated as percentages :</p>
<pre><span class="c1"># DHCPv4 configuration starts on the next line</span>
<span class="s2">"Dhcp4"</span><span class="p">:</span> <span class="p">{</span>
<span class="c1"># First we set up global values</span>
<span class="s2">"valid-lifetime"</span><span class="p">:</span> <span class="mi">4000</span><span class="p">,</span>
<code class="language-json" data-lang="json"> "calculate-tee-times": true,
</code>
</pre>
<div class="text-wrap tlid-copy-target">
<div class="result-shield-container tlid-copy-target"
tabindex="0"><span class="tlid-translation translation"
lang="en"><span title="" class="">Or :<br>
</span></span></div>
<div class="result-shield-container tlid-copy-target"
tabindex="0"><span class="tlid-translation translation"
lang="en"><span title="" class=""><br>
</span></span></div>
<div class="result-shield-container tlid-copy-target"
tabindex="0"><code class="language-json" data-lang="json"></code>
<pre><span class="c1"># DHCPv4 configuration starts on the next line</span>
<span class="s2">"Dhcp4"</span><span class="p">:</span> <span class="p">{</span>
<span class="c1"># First we set up global values</span>
<span class="s2">"valid-lifetime"</span><span class="p">:</span> <span class="mi">4000</span><span class="p">,</span>
<code class="language-json" data-lang="json"> "calculate-tee-times": true,
</code> <code class="language-json" data-lang="json"><code class="language-json" data-lang="json">"t1-percent": 0.5,
"t2-percent": 0.875,</code></code></pre>
<span class="tlid-translation translation" lang="en"><span
title="" class=""></span></span></div>
<div class="result-shield-container tlid-copy-target"
tabindex="0"><span class="tlid-translation translation"
lang="en"><span title="" class=""><br>
</span></span></div>
<div class="result-shield-container tlid-copy-target"
tabindex="0"><span class="tlid-translation translation"
lang="en"><span title="" class=""><br>
</span></span></div>
<div class="result-shield-container tlid-copy-target"
tabindex="0"><span class="tlid-translation translation"
lang="en"><span title="" class="">It's the right way?</span></span><span
class="tlid-translation-gender-indicator
translation-gender-indicator"></span><span
class="tlid-trans-verified-button trans-verified-button"
style="" role="button"></span></div>
</div>
<p><br>
</p>
<p>Best,<br>
<span class="tlid-translation translation" lang="en"><span
title="" class=""></span></span><span
class="tlid-translation translation" lang="en"><span
title="" class=""><code class="docutils literal
notranslate"><span class="pre"></span></code></span></span><span
class="tlid-translation translation" lang="en"><span
title="" class=""><code class="docutils literal
notranslate"><span class="pre"><span
class="tlid-translation translation" lang="en"><span
title="" class=""></span></span></span></code></span></span><span
class="tlid-translation translation" lang="en"><span
title="" class=""><code class="docutils literal
notranslate"><span class="pre"><span
class="tlid-translation translation" lang="en"><span
title="" class=""></span></span></span></code></span></span></p>
<pre class="moz-signature" cols="72">--
Marcos Renato da Silva Junior</pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a class="moz-txt-link-freetext" href="https://www.isc.org/contact/" moz-do-not-send="true">https://www.isc.org/contact/</a> for more information.
To unsubscribe visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users" moz-do-not-send="true">https://lists.isc.org/mailman/listinfo/kea-users</a>.
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org" moz-do-not-send="true">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users" moz-do-not-send="true">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a class="moz-txt-link-freetext" href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.
To unsubscribe visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
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</pre>
</body>
</html>