From: Christoph Kuhles (ck_at_aquatix.de)
Date: Mon 10 Feb 2003 - 13:26:07 GMT
Hey Matthieu,
Monday, February 10, 2003, 11:41:01 AM, you wrote:
MR> How can i do to force each vserver default route to his own gateway.
MR> In others words, is it possible to allocate a different routage table
MR> for each vserver :
You might want to take a closer look at source-based routing (kernel
option "policy routing"), it allows for exactly what you want. Also,
it's pretty simple -
ip ru add from 192.168.1.1 lookup 10
ip ro add default via 192.168.1.254 dev eth0 table 10
something like this. You shoud be able to find more info on
http://lartc.org.
Cheers
Chris