From owner-freebsd-questions Mon Dec 16 13: 4:50 2002 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 2F2B237B401 for ; Mon, 16 Dec 2002 13:04:49 -0800 (PST) Received: from invert.com (datacenterops.com [209.164.15.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F3043ED8 for ; Mon, 16 Dec 2002 13:04:48 -0800 (PST) (envelope-from mlist-freebsd@alt255.com) Received: (from jburke@localhost) by invert.com (8.11.3/8.11.3) id gBGL4Re87270; Mon, 16 Dec 2002 13:04:27 -0800 (PST) (envelope-from mlist-freebsd@alt255.com) Date: Mon, 16 Dec 2002 13:04:27 -0800 From: Justin Burke To: Boryan Yotov Cc: questions@FreeBSD.ORG Subject: Re: Adding defaultroute Message-ID: <20021216210427.GB59952@alt255.com> Mail-Followup-To: Boryan Yotov , questions@FreeBSD.ORG References: <20021216110512.GZ59952@alt255.com> <3DFDCC1D.4030205@prosyst.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DFDCC1D.4030205@prosyst.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Boryan Yotov (test@prosyst.com) wrote: > Otherwise simply change the following entry from /etc/rc,conf: > > defaultrouter="xxx.xxx.xxx.xxx" > to > defaultrouter="xxx.xxx.xxx.xxx rl0" Yeah, that didn't work.... Invalid ifconfig syntax. But I did locate where in the rc.network script that default routes are taken care of: # Set up any static routes. This should be done before router discovery. # if [ -n "${static_routes}" ]; then for i in ${static_routes}; do eval route_args=\$route_${i} route add ${route_args} done fi The problem is that by this time in the script, I already have a default route. I've fixed the problem by adding route change default xx.xx.xx.x to my rc.local. But isn't this defeating the purpose of the defaultroute variable? Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message