Subject: Re: Hallo, I got a dumb question....
To: None <port-i386@netbsd.org>
From: Erik Osheim <erik@plastic-idolatry.com>
List: port-i386
Date: 08/18/2004 10:25:42
On Wed, Aug 18, 2004 at 03:12:32PM +0000, Andreas Drewke wrote:
> how can one set up multiple static routes in NetBSD????
> Thanx alot..
Check out route(8) and routed(8).
According to routed, it looks like you can use /etc/gateways to specify gateways to use for static routes.
The command for what (I think) you want to do is this:
route add -net <dest-network> -netmask <dest-netmask> <router-ip>
(route add -net 10.0.0.0 -netmask 255.0.0.0 192.168.11.1)
So worst case, you can always add those to /etc/rc.local or something. That is not the right way to do it however. I think routed is (others please correct).
Good luck,
-- Erik
P.S. You probably want to send questions like these to netbsd-users rather than port-i386, since this question applies to all ports of NetBSD and is not architecture (or port) specific.