Thanks Patrick, it indeed works. What's interesting is, if I do "route del default eth0", it stops working (f.e. I can't ping my ISP's DNS server). I'm left in mystery, unless someone show me the kernel code that's behind all of this :) -nick Patrick McHardy wrote: > > Have another look at LARTC. > It works this way: > Create two new tables in /etc/iproute2/rt_tables, say eth0.out and > eth1.out. > Execute the following commands: > ip route add default via <eth0 gw> table eth0.out > ip route add default via <eth1 gw> table eth1.out > ip rule add from <eth0 ip> lookup eth0.out > ip rule add from <eth1 ip> lookup eth1.out > ip route flush cache > > Bye, > Patrick > > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html