<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I use 'static' (Last digit of TTL indicates which server issued the
    lease):<br>
    <font color="#993300"><tt>on commit {</tt><tt><br>
      </tt><tt>        if static {</tt><tt><br>
      </tt><tt>                set is-static = " --> STATIC";</tt><tt><br>
      </tt><tt><br>
      </tt><tt>                option dhcp-renewal-time        =
        encode-int(43200 / 2, 32);    # 43200 = 12 hours</tt><tt><br>
      </tt><tt>                option dhcp-rebinding-time      =
        encode-int(43200 * 7 / 8, 32);</tt><tt><br>
      </tt><tt>                ddns-ttl                        =
        encode-int((43200 / 2) + 1, 32);              # server1</tt><tt><br>
      </tt><tt>                #ddns-ttl                       =
        encode-int((</tt></font><font color="#993300"><tt><font
          color="#993300"><tt>43200</tt></font> / 2) + 2, 32);       
              # server2</tt><tt><br>
      </tt><tt>        } else {</tt><tt><br>
      </tt><tt>                set is-static = "";</tt><tt><br>
      </tt><tt><br>
      </tt><tt>                option dhcp-renewal-time        =
        encode-int(lease-time / 2, 32);</tt><tt><br>
      </tt><tt>                option dhcp-rebinding-time      =
        encode-int(lease-time * 7 / 8, 32);</tt><tt><br>
      </tt><tt>                ddns-ttl                        =
        encode-int((lease-time / 2) + 1, 32);         # server1</tt><tt><br>
      </tt><tt>                #ddns-ttl                       =
        encode-int((lease-time / 2) + 2, 32);         # server2</tt><tt><br>
      </tt><tt>        }</tt><tt><br>
      </tt><tt><br>
      </tt><tt>        log (</tt><tt><br>
      </tt><tt>                info,</tt><tt><br>
      </tt><tt>                        "Host:", pick-first-value(option
        fqdn.hostname, option host-name, "(none)")</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt>                        , is-static</tt><tt><br>
      </tt><tt><br>
      </tt><tt>        )</tt><tt><br>
      </tt><tt>}<br>
        host bigbird            { hardware ethernet 1c:87:2c:5c:68:72; 
        fixed-address 192.168.4.2; }<br>
        <br>
      </tt><tt></tt></font>bigbird is static.<br>
    <br>
    Bill<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2/23/2017 4:45 PM, Craig Huckabee
      wrote:<br>
    </div>
    <blockquote
      cite="mid:0B81589C-1762-4B64-B7E3-464F677468A0@spawar.navy.mil"
      type="cite">
      <pre wrap="">
  The dhcp-eval man page mentions two boolean expressions - ‘known’ and ‘static’.  Does anyone have an example of either from a working configuration ?

  I’m running version 4.3.5 and I’ve tried to setup some logging in an ‘if known’ block and ‘if static’ block with no results, so I’m obviously missing something.

Thanks,
Craig 


_______________________________________________
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>