<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div><div class="gmail_quote">On Fri, Jun 2, 2017 at 3:36 PM, Bill Shirley <span dir="ltr"><<a href="mailto:bill@c3po.polymerindustries.biz" target="_blank">bill@c3po.polymerindustries.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    Classless static routes are used by an OS because they're more
    specific:<br>
    <font color="#993300"><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt><tt><br>
      </tt><tt>option classless-static-routes       <wbr>   code 121 = array
        of unsigned integer 8; # for Windows Vista and other non Windows
        DHCP clients</tt><tt><br>
      </tt><tt>option classless-static-routes-ms    <wbr>   code 249 = array
        of unsigned integer 8; # for Windows 2000 and XP clients</tt><tt><br>
      </tt><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt><tt><br>
      </tt><tt><br>
      </tt><tt>subnet 10.0.0.0 netmask 255.0.0.0 {<br>
            option routers              10.96.0.12;<br>
      </tt><tt></tt><tt>.</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt>    option </tt></font><font color="#993300"><tt><font color="#993300"><tt>classless</tt></font>-static-routes</tt><tt><br>
      </tt><tt>        24,192,168,1,           10,96,0,9,      # lan1
        <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> gw 10.96.0.9</tt><tt><br>
      </tt><tt>        23,192,168,64,          10,96,0,9,      # site #2
        <a href="http://192.168.64.0/23" target="_blank">192.168.64.0/23</a></tt><tt><br>
      </tt><tt>        32,192,168,5,2,         10,96,0,76;     # serverB</tt><tt>
           <a href="http://192.168.5.2/32" target="_blank">192.168.5.2/32</a><br>
      </tt></font><br>
    <font color="#993300"><tt>    option </tt></font><font color="#993300"><tt><font color="#993300"><tt>classless</tt></font>-static-routes</tt><tt>-ms<br>
      </tt><tt>        24,192,168,1,           10,96,0,9,      # lan1
        <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a></tt></font><font color="#993300"><tt><font color="#993300"><tt> gw 10.96.0.9</tt></font></tt><tt><br>
      </tt><tt>        23,192,168,64,          10,96,0,9,      # site #2
        <a href="http://192.168.64.0/23" target="_blank">192.168.64.0/23</a></tt><tt><br>
      </tt><tt>        32,192,168,5,2,         10,96,0,76;     # serverB</tt><tt>
           <a href="http://192.168.5.2/32" target="_blank">192.168.5.2/32</a><br>
      </tt><tt><br>
      </tt></font>Not all dhcp clients are capable of utilizing them
    though.<span class="gmail-HOEnZb"><font color="#888888"><br>
    <br>
    Bill</font></span><span class="gmail-"><br>
    <br>
    <div class="gmail-m_-3644533525178631898moz-cite-prefix">On 6/2/2017 2:31 AM, Pavel Zhukov
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>"David G." <a class="gmail-m_-3644533525178631898moz-txt-link-rfc2396E" href="mailto:lightman@fastmail.fm" target="_blank"><lightman@fastmail.fm></a> writes:

</pre>
      <blockquote type="cite">
        <pre>Hi,

How can I communicate the priority of routes and routers via DHCP? I'm
trying to get computers on my network to use another router for a
specific subnet but everything is just going to the default gateway. I'm
using DHCP option 121 to set the route.
</pre>
      </blockquote>
      <pre>Hi,
Which OS are you using? Classless routes should be set by dhclient script which is
vendor specific.
</pre>
      <blockquote type="cite">
        <pre>Thanks!
</pre><pre><br></pre></blockquote></blockquote></span></div></blockquote><div><br></div><div>Try adding this to your DHCP configuration:</div><div><br></div><div>on commit {</div><div>  log(info,</div><div>    concat("REQUEST-LIST",</div><div>      " IP=",binary-to-ascii(10,8,".",leased-address),</div><div>      " MAC=",binary-to-ascii(16,8,":",hardware),</div><div>      " req-list=",binary-to-ascii(10,8,",",option dhcp-parameter-request-list)</div><div>    )</div><div>  );</div><div>}</div><div><br></div><div>Each time a lease is issued, it will log the list of DHCP options that the client requested.  If the client does not request code 121 or 249, then the server will not send them, because the client does not expect them and probably won't know what to do with them.</div><div><br></div><div>-- </div><div>Bob Harold</div><div> </div></div><br></div></div>