From owner-freebsd-questions@FreeBSD.ORG Fri Dec 9 21:36:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B65E416A41F for ; Fri, 9 Dec 2005 21:36:08 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DA1543D4C for ; Fri, 9 Dec 2005 21:36:07 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jB9La6ex056810; Fri, 9 Dec 2005 15:36:06 -0600 (CST) (envelope-from dan) Date: Fri, 9 Dec 2005 15:36:06 -0600 From: Dan Nelson To: Andrea Venturoli Message-ID: <20051209213606.GH95420@dan.emsphone.com> References: <43999C2E.7010506@netfence.it> <20051209154453.GE95420@dan.emsphone.com> <4399B2F5.2030306@netfence.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4399B2F5.2030306@netfence.it> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Sligtly OT: setting static routes on clients X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 21:36:08 -0000 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@allantgroup.com