From owner-freebsd-questions@FreeBSD.ORG Mon Feb 25 09:30:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 775BD16A501 for ; Mon, 25 Feb 2008 09:30:19 +0000 (UTC) (envelope-from ml@netfence.it) Received: from parrot.aev.net (parrot.aev.net [212.31.247.179]) by mx1.freebsd.org (Postfix) with ESMTP id 01ABC13C4EB for ; Mon, 25 Feb 2008 09:30:18 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu ([151.77.252.33]) (authenticated bits=128) by parrot.aev.net (8.14.2/8.13.8) with ESMTP id m1P9Uhb8063365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 25 Feb 2008 10:30:49 +0100 (CET) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.2/8.14.2) with ESMTP id m1P9Uw97096469; Mon, 25 Feb 2008 10:30:59 +0100 (CET) (envelope-from ml@netfence.it) Message-ID: <47C28A9E.6040700@netfence.it> Date: Mon, 25 Feb 2008 10:30:06 +0100 From: Andrea Venturoli User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: Ed Maste References: <47C012EE.6090006@netfence.it> <20080224230441.GA12542@sandvine.com> In-Reply-To: <20080224230441.GA12542@sandvine.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on 212.31.247.179 Cc: freebsd-questions@freebsd.org Subject: Re: 6.3 DHCP and static_routes 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: Mon, 25 Feb 2008 09:30:19 -0000 Ed Maste ha scritto: > As of FreeBSD 6.3 dhclient supports RFC3442, the classless static route > option. If your DHCP server is including this option but not encoding > the default route using the option you'll have no default route. Thanks for the answer; this is in fact my case. It would be great news if I could get it to work properly! Obviously repeating the static routes in rc.conf was an hack due to lack of this support. Now I fiddled with my dhcpd.conf and came up with this: option local-route code 121 = string; option local-route 00:0a:01:02:7f; option local-route 18:c0:A8:65:0a:01:02:0d; option local-route 18:c0:A8:67:0a:01:02:0f; option local-routew code 249 = string; option local-routew 00:0a:01:02:7f; option local-routew 18:c0:A8:65:0a:01:02:0d; option local-routew 18:c0:A8:67:0a:01:02:0f; The problem is that only the latest route gets in the table; in this case: 192.168.103 10.1.2.15 UGS 0 0 vr0 In order to get a default route I have to comment the other two. Any hint on this? Thanks a lot. bye av.