From owner-freebsd-current Sun May 2 19:43:20 1999 Delivered-To: freebsd-current@freebsd.org Received: from hugin.odin-corporation.com (fredriks-2.pr.mcs.net [205.164.50.242]) by hub.freebsd.org (Postfix) with ESMTP id 6718B14CC6 for ; Sun, 2 May 1999 19:42:42 -0700 (PDT) (envelope-from lars@odin-corporation.com) Received: from odin-corporation.com (localhost [127.0.0.1]) by hugin.odin-corporation.com (8.9.2/8.9.1) with ESMTP id VAA17811; Sun, 2 May 1999 21:42:32 -0500 (CDT) (envelope-from lars@odin-corporation.com) Message-ID: <372D0D18.E89B355A@odin-corporation.com> Date: Sun, 02 May 1999 21:42:32 -0500 From: Lars Fredriksen Organization: Odin Corporation X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: no, en MIME-Version: 1.0 To: Stefan Bethke Cc: Andreas Braukmann , current@FreeBSD.ORG Subject: Re: default route not set up?? References: <15885868.3134688869@monster.transit-a.hanse.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for setting me straight! I am backtracking trying to find out what I did wrong initially when I tried to set it up. I certainly botched the debugging part :-( Lars Stefan Bethke wrote: > 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