Date: Mon, 03 May 1999 02:54:29 +0200 From: Stefan Bethke <stefan.bethke@hanse.de> To: Lars Fredriksen <lars@odin-corporation.com> Cc: Andreas Braukmann <braukmann@tse-online.de>, 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Don't!
--On Son, 2. Mai 1999 12:44 Uhr -0500 Lars Fredriksen
<lars@odin-corporation.com> 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 <net ip> <host>"
> route_default=" default <host>"
>
> 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 <stefan.bethke@hanse.de>
Hamburg, Germany <stb@freebsd.org>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15885868.3134688869>
