Source based routing

Alexander Boström abo at kth.se
Tue Jul 20 16:20:40 UTC 2004


On tis, 2004-07-20 at 17:57 +0200, Alexander Dalloz wrote:

> The routing is destination based.

Simple howto for source based routing:

First set up an alternative routing table using commands like this:

 /sbin/ip route add <prefix>/<prefixlen> dev <device> table <tablenum>
 /sbin/ip route add default <some routing spec> table <tablenum>

Then use this table for a set of source IPs:

 /sbin/ip rule add from <prefix>/<prefixlen> table <tablenum>

The command /sbin/ip seems a bit more flexible than commands like
ifconfig and route.

/abo






More information about the fedora-list mailing list