[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Really strange interface behavior
On 2/4/07, coderman <coderman@xxxxxxxxx> wrote:
...
you can maybe fix via iproute2 and policy based routing (may also need
netfilter hooks).
for the sake of completeness:
gw1 = 216.9.65.1
gw2 = 216.9.100.1
ip route add default via 216.9.65.1 dev eth0 tab 1
ip route add default via 216.9.100.1 dev eth1 tab 2
ip rule add from 216.9.65.50/32 tab 1 priority 500
ip rule add from 216.9.100.100/32 tab 2 priority 501
ip route flush cache
may do the trick. (if you've got the same default router IP for both,
then use it instead of two distinct as shown above).
good luck,
#include <std_disclaimer>