Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2004 13:40:04 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Mark McConnell <markmc@tisimaging.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: static routes
Message-ID:  <20040206004003.GA74687@grimoire.chen.org.nz>
In-Reply-To: <40226C37.23409.1A6D6875@localhost>
References:  <40226C37.23409.1A6D6875@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 05, 2004 at 04:15:51PM -0800, Mark McConnell wrote:

[...]
> I want to be sure that the interfaces are configured automatically, 
> in case the system is rebooted. Should this go in rc.conf ?  Where 
> (the interface? routed?) and with what syntax? Should I place a shell 
> script in /usr/local/etc/rc.d instead? 
> 
> Interactively, for example, I would say at the CLI:
> route add -net 192.168.2.0 mask 0.0.0.0 192.168.1.1

/etc/rc.conf:
    static_routes="mynet"
    route_mynet="-net 192.168.2.0 mask 0.0.0.0 192.168.1.1"

-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                "I don't want to achive immortality through my works..
                 I want to achieve it through not dying" - Woody Allen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040206004003.GA74687>