<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Fri, Jun 2, 2017, at 12:44 PM, Bob Harold wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div><div><br></div>
</div>
<div defang_data-gmailquote="yes"><div>On Fri, Jun 2, 2017 at 3:36 PM, Bill Shirley <span dir="ltr"><<a href="mailto:bill@c3po.polymerindustries.biz">bill@c3po.polymerindustries.biz</a>></span> wrote:<br></div>
<blockquote style="padding-left:1ex;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;" defang_data-gmailquote="yes"><div bgcolor="#FFFFFF"><div>Classless static routes are used by an OS because they're more
    specific:<br></div>
<div> <br></div>
<span class="colour" style="color:rgb(153, 51, 0)"><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>#
------------------------------<wbr>------------------------------<wbr>------------------</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>option classless-static-routes       <wbr>   code 121 = array
        of unsigned integer 8; # for Windows Vista and other non Windows
        DHCP clients</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>option classless-static-routes-ms    <wbr>   code 249 = array
        of unsigned integer 8; # for Windows 2000 and XP clients</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>#
------------------------------<wbr>------------------------------<wbr>------------------</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>subnet 10.0.0.0 netmask 255.0.0.0 {<br>     option routers              10.96.0.12;<br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'></span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>.</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>.</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>    option</span></div>
</span><span class="colour" style="color:rgb(153, 51, 0)"><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><span class="colour" style="color:rgb(153, 51, 0)"><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>classless</span><br></div>
</span><div>-static-routes<br></div>
</span><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br></span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        24,192,168,1,           10,96,0,9,      # lan1 <a href="http://192.168.1.0/24">192.168.1.0/24</a> gw 10.96.0.9</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        23,192,168,64,          10,96,0,9,      # site #2 <a href="http://192.168.64.0/23">192.168.64.0/23</a></span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        32,192,168,5,2,         10,96,0,76;     # serverB</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>    <a href="http://192.168.5.2/32">192.168.5.2/32</a></span></div>
</span><div><br></div>
<span class="colour" style="color:rgb(153, 51, 0)"><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>    option</span><br></div>
</span><span class="colour" style="color:rgb(153, 51, 0)"><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><span class="colour" style="color:rgb(153, 51, 0)"><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>classless</span><br></div>
</span><div>-static-routes<br></div>
</span><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>-ms<br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        24,192,168,1,           10,96,0,9,      # lan1 <a href="http://192.168.1.0/24">192.168.1.0/24</a></span></div>
</span><span class="colour" style="color:rgb(153, 51, 0)"><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><span class="colour" style="color:rgb(153, 51, 0)"><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>gw 10.96.0.9</span><br></div>
</span></span><div><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br></span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        23,192,168,64,          10,96,0,9,      # site #2 <a href="http://192.168.64.0/23">192.168.64.0/23</a></span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>        32,192,168,5,2,         10,96,0,76;     # serverB</span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'>    <a href="http://192.168.5.2/32">192.168.5.2/32</a><br> </span><span class="font" style='font-family:menlo,consolas,"courier new",monospace'></span></div>
</span><div>Not all dhcp clients are capable of utilizing them
    though.<span><span class="colour" style="color:rgb(136, 136, 136)"><br> <br> Bill</span></span><span><br> <br> </span></div>
<div><span>On 6/2/2017 2:31 AM, Pavel Zhukov
      wrote:</span><br></div>
<blockquote type="cite"><pre><span>"David G." <a href="mailto:lightman@fastmail.fm"><lightman@fastmail.fm></a> writes:

</span><br></pre><blockquote type="cite"><pre><span>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.
</span><br></pre></blockquote><pre><span>Hi,
Which OS are you using? Classless routes should be set by dhclient script which is
vendor specific.
</span><br></pre><blockquote type="cite"><pre><span>Thanks!
</span><br></pre><pre><span></span><br></pre></blockquote></blockquote><div><span></span><br></div>
</div>
</blockquote><div><br></div>
<div>Try adding this to your DHCP configuration:<br></div>
<div><br></div>
<div>on commit {<br></div>
<div>  log(info,<br></div>
<div>    concat("REQUEST-LIST",<br></div>
<div>      " IP=",binary-to-ascii(10,8,".",leased-address),<br></div>
<div>      " MAC=",binary-to-ascii(16,8,":",hardware),<br></div>
<div>      " req-list=",binary-to-ascii(10,8,",",option dhcp-parameter-request-list)<br></div>
<div>    )<br></div>
<div>  );<br></div>
<div>}<br></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.<br></div>
<div><br></div>
<div>-- <br></div>
<div>Bob Harold<br></div>
<div> <br></div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>dhcp-users mailing list<br></div>
<div><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br></div>
<div><a href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></div>
</blockquote><div><br></div>
<div id="sig3270381"><div class="signature">Thank you for the answers. I'll look into these options. I'm actually using a mix of different clients, so the operating systems vary across the machines. A major problem was the DHCP software was sending a 'classful' route with a netmask of 255.255.255.255. That was pretty useless in my case.<br></div>
<div class="signature"><br></div>
</div>
<div><br></div>
<pre>
-- 
http://www.fastmail.com - Choose from over 50 domains or use your own
</pre>
</body>
</html>