<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Classless static routes are used by an OS because they're more
specific:<br>
<font color="#993300"><tt>#
------------------------------------------------------------------------------</tt><tt><br>
</tt><tt>option classless-static-routes 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 code 249 = array
of unsigned integer 8; # for Windows 2000 and XP clients</tt><tt><br>
</tt><tt>#
------------------------------------------------------------------------------</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
192.168.1.0/24 gw 10.96.0.9</tt><tt><br>
</tt><tt> 23,192,168,64, 10,96,0,9, # site #2
192.168.64.0/23</tt><tt><br>
</tt><tt> 32,192,168,5,2, 10,96,0,76; # serverB</tt><tt>
192.168.5.2/32<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
192.168.1.0/24</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
192.168.64.0/23</tt><tt><br>
</tt><tt> 32,192,168,5,2, 10,96,0,76; # serverB</tt><tt>
192.168.5.2/32<br>
</tt><tt><br>
</tt></font>Not all dhcp clients are capable of utilizing them
though.<br>
<br>
Bill<br>
<br>
<div class="moz-cite-prefix">On 6/2/2017 2:31 AM, Pavel Zhukov
wrote:<br>
</div>
<blockquote cite="mid:87k24uq4rq.fsf@home-gentoo.zhukoff.net"
type="cite">
<pre wrap="">"David G." <a class="moz-txt-link-rfc2396E" href="mailto:lightman@fastmail.fm"><lightman@fastmail.fm></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">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 wrap="">Hi,
Which OS are you using? Classless routes should be set by dhclient script which is
vendor specific.
</pre>
<blockquote type="cite">
<pre wrap="">
Thanks!
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>