Date: Sun, 02 May 1999 21:42:32 -0500 From: Lars Fredriksen <lars@odin-corporation.com> To: Stefan Bethke <stefan.bethke@hanse.de> Cc: Andreas Braukmann <braukmann@tse-online.de>, current@FreeBSD.ORG Subject: Re: default route not set up?? Message-ID: <372D0D18.E89B355A@odin-corporation.com> References: <15885868.3134688869@monster.transit-a.hanse.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
> <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?372D0D18.E89B355A>
