Source based routing

Solves the problem with two default gateways

ip addr add 81.0.212.65/27 dev eth0
root@wd1:~# echo "200 webdomena" >> /etc/iproute2/rt_tables
root@wd1:~# ip rule add from 81.0.212.64/27 table webdomena
root@wd1:~# ip route add default via 81.0.212.94 dev eth0 table webdomena
root@wd1:~# ip route flush cache
 
linux/routing.txt · Last modified: 2009/05/20 02:00 by admin