From owner-freebsd-current Sun May 2 17:55: 5 1999 Delivered-To: freebsd-current@freebsd.org Received: from kogge.Hanse.DE (kogge.hanse.de [192.76.134.17]) by hub.freebsd.org (Postfix) with ESMTP id 6FDAC15224 for ; Sun, 2 May 1999 17:55:01 -0700 (PDT) (envelope-from stefan.bethke@hanse.de) Received: from transit.hanse.de (transit-a.Hanse.DE [193.174.9.161]) by kogge.Hanse.DE (8.9.1/8.9.1) with ESMTP id CAA76578; Mon, 3 May 1999 02:54:42 +0200 (CEST) (envelope-from stefan.bethke@hanse.de) Received: from monster.transit-a.hanse.de (monster [193.174.9.163]) by transit.hanse.de (8.8.8/8.8.8) with ESMTP id CAA28186; Mon, 3 May 1999 02:54:38 +0200 (CEST) (envelope-from stefan.bethke@hanse.de) Date: Mon, 03 May 1999 02:54:29 +0200 From: Stefan Bethke To: Lars Fredriksen Cc: Andreas Braukmann , current@FreeBSD.ORG Subject: Re: default route not set up?? Message-ID: <15885868.3134688869@monster.transit-a.hanse.de> In-Reply-To: <372C8EF0.DCE3BD49@odin-corporation.com> Originator-Info: login-id=stb; server=transit.transit-a.hanse.de X-Mailer: Mulberry (MacOS) [1.4.0, s/n U-301178] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Don't! --On Son, 2. Mai 1999 12:44 Uhr -0500 Lars Fredriksen wrote: > So rc.conf should read: (example from my setup) > > > defaultrouter="YES" # Set to default gateway (or NO). > static_routes="local" # Set to static route list (or leave > empty). > route_local=" -net " > route_default=" default " > > So, two actions are needed. The route_default line from rc.network should > get deleted, and the comment > in rc.conf for the defaultrouter variable should be clearer. > > If others agree, I can go and commit the fixes for that .... Don't! Look at rc.network again. If you don't get it, run the code with set -vx, and see what happens. The correct entry still is: defaultrouter="1.2.3.4" For your convenience, I'm posting the complete snipped again: # Configure routing if [ "x$defaultrouter" != "xNO" ] ; then static_routes="default ${static_routes}" route_default="default ${defaultrouter}" fi # Set up any static routes. This should be done before router discovery. if [ "x${static_routes}" != "x" ]; then for i in ${static_routes}; do eval route_args=\$route_${i} route add ${route_args} done fi Stefan -- Stefan Bethke Muehlendamm 12 Phone: +49-40-256848, +49-177-3504009 D-22087 Hamburg Hamburg, Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message