DHCP and Route Priority

Bill Shirley bill at c3po.polymerindustries.biz
Fri Jun 2 19:36:35 UTC 2017


Classless static routes are used by an OS because they're more specific:
# ------------------------------------------------------------------------------
option classless-static-routes          code 121 = array of unsigned integer 8; # for Windows Vista and other non Windows DHCP 
clients
option classless-static-routes-ms       code 249 = array of unsigned integer 8; # for Windows 2000 and XP clients
# ------------------------------------------------------------------------------

subnet 10.0.0.0 netmask 255.0.0.0 {
     option routers              10.96.0.12;
.
.
     option classless-static-routes
         24,192,168,1,           10,96,0,9,      # lan1 192.168.1.0/24 gw 10.96.0.9
         23,192,168,64,          10,96,0,9,      # site #2 192.168.64.0/23
         32,192,168,5,2,         10,96,0,76;     # serverB   192.168.5.2/32

     option classless-static-routes-ms
         24,192,168,1,           10,96,0,9,      # lan1 192.168.1.0/24gw 10.96.0.9
         23,192,168,64,          10,96,0,9,      # site #2 192.168.64.0/23
         32,192,168,5,2,         10,96,0,76;     # serverB   192.168.5.2/32

Not all dhcp clients are capable of utilizing them though.

Bill

On 6/2/2017 2:31 AM, Pavel Zhukov wrote:
> "David G." <lightman at fastmail.fm> writes:
>
>> 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.
> Hi,
> Which OS are you using? Classless routes should be set by dhclient script which is
> vendor specific.
>> Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170602/1b2f1fdd/attachment.html>


More information about the dhcp-users mailing list