static routes

Jonathan Chen jonc at chen.org.nz
Thu Feb 5 16:40:09 PST 2004


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 at chen.org.nz>
----------------------------------------------------------------------
                "I don't want to achive immortality through my works..
                 I want to achieve it through not dying" - Woody Allen


More information about the freebsd-questions mailing list