<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>Thanks for your inputs.</div><div><br></div><div>I quickly checked in my system.</div><div><div>From "/etc/dhcpd.conf", i could clearly see that 600 is set to both max and default. This output is from server side.</div><div>    max-lease-time 600;</div><div>    default-lease-time 600;</div><div><span style="white-space:pre">   </span></div><div>On the client side, "/etc/dhclient.conf" says:</div><div><span style="white-space:pre">       </span>send dhcp-lease-time 3600;</div></div><div><br></div><div>Thanks & Regards,</div><div>Muralikrishna CH</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 16, 2019 at 12:25 AM Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk">stenc@s-carlsen.dk</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">
  
    
  
  <div bgcolor="#FFFFCC">
    <br>
    <br>
    <div class="gmail-m_7195361169354394153moz-cite-prefix">On 15/04/2019 18.48, Murali Krishna
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">Hi,
              <div><br>
              </div>
              <div>
                <div dir="ltr" class="gmail-m_7195361169354394153gmail_signature">
                  <div dir="ltr">
                    <div>Im facing issue with the dhcp lease time. </div>
                    <div>Im having two different DHCP versions in server
                      and client side. I could see that the lease file
                      at the client had very huge value of the dhcp
                      lease.</div>
                    <div><br>
                    </div>
                    <div>version on the server side:</div>
                    <div>isc-dhcpd-4.3.6-P1<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Version on the client side:</div>
                    <div>isc-dhcpd-4.2.1-P1<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Content(part) of the lease file at the client
                      side:</div>
                    <div>dhcp-lease-time <span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9pt">152292816</span>;</div>
                    <div><br>
                      Output of pcap file used for debugging:</div>
                    <div>
                      <ul style="margin-bottom:0cm" type="disc">
                        <li class="MsoNormal" style="color:rgb(72,72,72);margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Verdana,sans-serif" lang="EN-US"><a href="https://gordon.advantech.com.tw/issues/28" title="It shall be possible to upgrade all
                              embedded software to the unit in a time
                              less than 15 minutes. (Deferred)" style="color:rgb(5,99,193)" target="_blank">#28</a>: Client
                            sends "DHCP Request" to server and asks the
                            lease time 3600s. </span></li>
                        <li class="MsoNormal" style="color:rgb(72,72,72);margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:Verdana,sans-serif" lang="EN-US"><a href="https://gordon.advantech.com.tw/issues/29" title="An ATCA Blade FRUcontaining
                              embedded SW/FW components shall support an
                              HPI FUMI interface, per co... (Closed)" style="color:rgb(5,99,193)" target="_blank">#29</a>: The server
                            replies the "DHCP ACK" to client, but the
                            lease time is 152292816s. <br>
                          </span></li>
                      </ul>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    The server is configured with two times, max-lease-time and
    default-lease-time. It will send those times to the client, in this
    case it looks like the server is configured to send very long times
    (4.8 years). It is up to the client when it wants to renew the
    lease, the 3600s is clearly within the bounds of what it is given.<br>
    <br>
    If you want shorter lease times, the server needs to be configured
    to hand out those times instead.<br>
    <blockquote type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div>
                <div dir="ltr" class="gmail-m_7195361169354394153gmail_signature">
                  <div dir="ltr">
                    <div>
                      <ul style="margin-bottom:0cm" type="disc">
                      </ul>
                      <div><br>
                      </div>
                      <div>Please help in getting this resolved. Also
                        please share in what kind of situations the
                        server will respond to the client with a huge
                        lease value.</div>
                      <div><br>
                      </div>
                      Thanks & Regards,<br>
                      Muralikrishna CH<br>
                      <br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_7195361169354394153mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_7195361169354394153moz-quote-pre">_______________________________________________
dhcp-users mailing list
<a class="gmail-m_7195361169354394153moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a class="gmail-m_7195361169354394153moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br><br><br><br>Thanks & Regards,<br>Muralikrishna CH<br><br></div></div></div>