Sligtly OT: setting static routes on clients
Dan Nelson
dnelson at allantgroup.com
Fri Dec 9 13:36:08 PST 2005
In the last episode (Dec 09), Andrea Venturoli said:
> Dan Nelson wrote:
> >In the last episode (Dec 09), Andrea Venturoli said:
> >>I've got a network of clients on which I'd like to set static
> >>routes; these are mainly (but not only) Windows machines,
> >>administered through a couple of FreeBSD servers. Is there any way
> >>to do this with DHCP? Or via Samba (netlogon.cmd)?
> >
> >You can try using the DHCP Classless Static Route option (#121, see
> >RFC 3442). MSDN claims that Windows XP and Server 2003 will process
> >them. FreeBSD's dhclient does not, but you should still be able to
> >set its dhcp server to send them.
>
> You mean, from man dhcp-options:
>
> option static-routes ip-address ip-address
> [, ip-address ip-address...];
>
> This option specifies a list of static routes that the client should
> install in its routing cache. If multiple routes to the same
> destination are specified, they are listed in descending order of
> priority.
No, that's option 33, which as you found out only handles a single IP.
Option 121 includes network and netmask fields, but since it's not
known by isc-dhcpd, you will have have to define it yourself (see the
dhcp-options manpage, "DEFINING NEW OPTIONS" section).
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list