Don't!

--On Son, 2. Mai 1999 12:44 Uhr -0500 Lars Fredriksen
<l...@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.bet...@hanse.de>
Hamburg, Germany          <s...@freebsd.org>



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to