[LARTC] load balancing
Indunil Jayasooriya
indunil75 at gmail.com
Fri Oct 13 10:54:22 CEST 2006
try this
echo "11 line1" >> /etc/iproute2/rt_tables
echo "12 line2" >> /etc/iproute2/rt_tables
ip route add 1.2.3.0/29 <http://203.115.26.64/29> dev eth0 src
1.2.3.6<http://203.115.26.66/>table line1
ip route add default via 1.2.3.5 <http://203.115.26.65/> table line1
ip route add 192.168.6.0/24 dev eth1 src 192.168.6.4 table line2
ip route add default via 192.168.6.254 table line2
ip rule add from1.2.3.6 <http://203.115.26.66/> table line1
ip rule add from 192.168.6.4 table line2
ip route add default scope global nexthop via
1.2.3.5<http://203.115.26.65/>dev eth0 weight 1 nexthop via
192.168.6.254 dev eth1 weight 1
pls change ips accordingly. and add these to rc.local file
--
Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ds9a.nl/pipermail/lartc/attachments/20061013/d64ba52f/attachment.html
More information about the LARTC
mailing list