Hi,

You might want to get the iproute2 tools. After that:

ip route add 0.0.0.0/0 table 1 nexthop via 'tunnel-ip' dev 'tunnel'
configures a routing table to use tunnel as default gateway.

ip rule add from x.x.x.x/x to 0.0.0.0/0 table 1
traffic from network x.x.x.x/x is routed using this table.

http://www.snafu.freedom.org/linux2.2/docs/ip-cref/
contains information about ip tool.

Eric.


-----Original Message-----
From: Clifford Hammerschmidt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 5:34 PM
To: [EMAIL PROTECTED]
Subject: Source & Dest based route?


Hi all,

Is there anyway to get linux/route to do source and destination based route 
tables? I've got a box with several IP's on it and I need to be able to 
route traffic for some of the IP's over a VPN. Right now I have to do all 
the IP's or none. :(

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to