Hi,

On 30 Jan 1999 23:31:48 +0100, Jonas Oberg <[EMAIL PROTECTED]> wrote:
> I would have guessed that something like this would do the trick;
> 
> ip rule add from 10.10.10.0/24 dev eth0 table 1
> ip rule add from 10.10.20.0/24 dev eth0 table 2
> ip route add default via 10.10.10.1 dev eth1 table 1
> ip route add default via 10.10.20.1 dev eth2 table 2

Well it  should work.  But it would  be better if  you give  your real
setup (by mail if  you want) so we could look at  the real problem. In
the example  above, I don't see  how you can have  packets coming from
10.10.10.0/24 coming  through eth0  and then  send them  to 10.10.10.1
through another interface. Are you sure that you can reach it throught
eth1?

Same thing for the other gateway.

Send me by mail your config  (ifconfig, ip route show table [1|2|main]
and ip rule)

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

Reply via email to