Subject: Re: standard way to add routes?
To: Harry Waddell <waddell@caravan.com>
From: Rasputin <rasputin@idoru.mine.nu>
List: netbsd-help
Date: 01/04/2003 00:53:41
* Harry Waddell <waddell@caravan.com> [0115 20:15]:
> On Fri, 3 Jan 2003 13:36:40 +0000
> Rasputin <rasputin@idoru.mine.nu> wrote:

> > Nice easy one:
> > 	Is there something like /etc/mygate you can use to add
> > static routes at boot time. I couldn't find any simpler fix than
> > sticking a
> > 
> > !route add -net ....
> > 
> > to the end of /etc/ifconfig.closest-interface,
> > but that seemed a bit clanky.
 
> I'm not sure how standard it is, but I usually put static routes, other than
> the default in /etc/mygate, in /etc/netstart.local. It would be painfully easy
> to add a mechanism like the one used for interface aliases. A simple 
> "grep route /etc/rc.d/netstart" did not reveal anything that looked like it
> would be an alternate mechanism. 

Ah, rc.local. The gaffer tape[0] of the rc system :)

Really not a big deal, just checking really.


( [0] : That's duct tape for the Merkins in the audience. )
-- 
Rasputin :: Jack of All Trades - Master of Nuns