<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<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">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>
</body>
</html>