<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I don't know what DHCP sends if you ask for 3600 second lease and
    the default is higher.<br>
    Wireshark might answer that for you.  I haven't messed with DHCPv6
    for a while but at some<br>
    point I also tried:<br>
    <font color="#993300"><tt># data: leased_lease: not available: ," 
        Lease: ",
        pick-first-value(binary-to-ascii(10,32,"",encode-int(lease-time,32)),
        "<none>")</tt><tt><br>
      </tt><tt>#       ,"  Lease:", pick-first-value(binary-to-ascii(10,
        32, "", config-option dhcp6.clt-time), "<none>")</tt><tt><br>
      </tt></font>and commented them out.<br>
    <br>
    Currently there are some DHCPv6 options that don't work as expected.
    <font color="#993300"><tt>dhcp6.fqdn</tt></font> is one.<br>
    The docs say it works just like <font color="#993300"><tt>fqdn.fqdn</tt></font>
    but it throws an error message.  I'm thinking<br>
    <font color="#993300"><tt>lease-time</tt></font> should work just
    like DHCPv4 but I don't think it does.<br>
    <br>
    Bill<br>
    <br>
    <div class="moz-cite-prefix">On 12/23/2016 8:54 AM, perl-list wrote:<br>
    </div>
    <blockquote
      cite="mid:697715861.381904.1482501278383.JavaMail.zimbra@network1.net"
      type="cite">
      <div style="font-family: Andale Mono; font-size: 10pt; color:
        #000000">
        <div>Bill,</div>
        <div><br data-mce-bogus="1">
        </div>
        <div>Thank you for the response.</div>
        <div><br data-mce-bogus="1">
        </div>
        <div>That wouldn't necessarily give you the actual lease time,
          however, would it?  It seems like it would give you the
          setting that you have in the pool6 {} statement.</div>
        <div><br data-mce-bogus="1">
        </div>
        <div>For example, if the client asked for a 3600 second lease
          but the server was configured for 28800 second lease, the
          server would give the client the 3600 second lease right?  At
          least that was how it worked in IPv4/DHCPv4.  So then you
          would log that the lease was 28800 when it was actually 3600
          yes?  Or is the server the absolute authority on lease times
          in DHCPv6? </div>
        <div style="font-family: Andale Mono; font-size: 10pt; color:
          #000000;" data-mce-style="font-family: Andale Mono; font-size:
          10pt; color: #000000;"><br>
          <br>
          <hr id="zwchr" data-marker="__DIVIDER__">
          <div data-marker="__HEADERS__">
            <blockquote style="border-left: 2px solid #1010FF;
              margin-left: 5px; padding-left: 5px; color: #000;
              font-weight: normal; font-style: normal; text-decoration:
              none; font-family: Helvetica,Arial,sans-serif; font-size:
              12pt;" data-mce-style="border-left: 2px solid #1010FF;
              margin-left: 5px; padding-left: 5px; color: #000;
              font-weight: normal; font-style: normal; text-decoration:
              none; font-family: Helvetica,Arial,sans-serif; font-size:
              12pt;"><b>From: </b>"Bill Shirley"
              <a class="moz-txt-link-rfc2396E" href="mailto:bill@c3po.polymerindustries.biz"><bill@c3po.polymerindustries.biz></a><br>
              <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
              <b>Sent: </b>Thursday, December 22, 2016 11:42:25 PM<br>
              <b>Subject: </b>Re: bug in DHCPv6 option parse for on
              commit {} ?<br>
            </blockquote>
          </div>
          <div data-marker="__QUOTED_TEXT__">
            <blockquote style="border-left: 2px solid #1010FF;
              margin-left: 5px; padding-left: 5px; color: #000;
              font-weight: normal; font-style: normal; text-decoration:
              none; font-family: Helvetica,Arial,sans-serif; font-size:
              12pt;" data-mce-style="border-left: 2px solid #1010FF;
              margin-left: 5px; padding-left: 5px; color: #000;
              font-weight: normal; font-style: normal; text-decoration:
              none; font-family: Helvetica,Arial,sans-serif; font-size:
              12pt;">I use (IPv6):<br>
              <span color="#993300" data-mce-style="color: #993300;"
                style="color: #993300;"><tt>log (<br>
                    info,<br>
                      concat (<br>
                        "  Lease:", pick-first-value(binary-to-ascii(10,
                  32, "", config-option server.default-lease-time),
                  "<none>")<br>
                        .<br>
                        .<br>
                </tt></span><br>
              Bill<br>
              <br>
              <div class="moz-cite-prefix">On 12/22/2016 10:41 AM,
                perl-list wrote:<br>
              </div>
              <blockquote
                cite="mid:1927548505.376493.1482421290562.JavaMail.zimbra@network1.net">
                <div style="font-family: Andale Mono; font-size: 10pt;
                  color: #000000;" data-mce-style="font-family: Andale
                  Mono; font-size: 10pt; color: #000000;">
                  <div>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">having something like this
                        in the dhcpd.conf file for DHCPv6:</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><br>
                    </p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;">on commit {<br>
                    </p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">        if exists
                        dhcp6.ia-na {</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">                log(debug,</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">                       
                        concat( "LEASED,",</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">                         
                              </span>"IPTIME,",binary-to-ascii(10, 32,
                      "", substring(option dhcp6.ia-na,36,4)),","</p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"></span><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">                        )</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">                );</span></p>
                    <p style="color: #000000; font-family: Menlo;
                      font-size: 11px; margin: 0px; line-height:
                      normal;" data-mce-style="color: #000000;
                      font-family: Menlo; font-size: 11px; margin: 0px;
                      line-height: normal;"><span
                        style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">        }</span></p>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">}</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"><br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">Will produce a value for
                        IPTIME that is equal to the time requested by
                        the client instead of what was given by the
                        server.</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"><br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">For example:</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"><br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">Client (Redhat Enterprise
                        Linux 7 - ISC DHCP 4.2.5) sends a Renew for an
                        IPv6 address via DHCPv6 requesting the following
                        times (As seen in wireshark capture):<br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"><br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">T1: 3600</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">T2: 5400</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">Preferred Lifetime: 7200</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">Valid Lifetime: 7500</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;"><br>
                      </span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><span style="font-variant-ligatures:
                        no-common-ligatures;"
                        data-mce-style="font-variant-ligatures:
                        no-common-ligatures;">Server (generic Linux -
                        ISC DHCP 4.3.3) is configured with this time
                        setting in the pool6 {} statement:</span></div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">default-lease-time 600;<br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Server responds with times like this (as
                      seen in wireshark capture):</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">T1: 0</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">T2: 0</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Preferred Lifetime: 375</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Valid Lifetime: 600</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">What is logged in the log file is 7500 not
                      600.</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">The client lease file shows the following
                      times:</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Renew: 0</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Rebind: 0</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Preferred Lifetime: 375</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">Valid Lifetime: 600</div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;"><br>
                    </div>
                    <div style="color: #000000; font-family: 'Andale
                      Mono'; font-size: 10pt;" data-mce-style="color:
                      #000000; font-family: 'Andale Mono'; font-size:
                      10pt;">So, it seems that the dhcp options
                      available in on commit {} are what the client sent
                      in instead of those the server sent in response?
                       Is that a bug?  Or do I not understand how on
                      commit {} works?  I assumed that on commit {}
                      would have access to the options as set by the
                      server that were sent back to the client.</div>
                  </div>
                </div>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre>_______________________________________________
dhcp-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a moz-do-not-send="true" class="moz-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>
              <br>
              _______________________________________________<br>
              dhcp-users mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
              <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></blockquote>
          </div>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>