From: "Indunil Jayasooriya" Date: Fri, 13 Oct 2006 08:54:58 +0000 Subject: [LARTC] load balancing Message-Id: <7ed6b0aa0610130154m32d44b78j950e227d4faedbd6@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0803939697==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --===============0803939697== Content-Type: multipart/alternative; boundary="----=_Part_21868_12010069.1160729662468" ------=_Part_21868_12010069.1160729662468 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline try this echo "11 line1" >> /etc/iproute2/rt_tables echo "12 line2" >> /etc/iproute2/rt_tables ip route add 1.2.3.0/29 dev eth0 src 1.2.3.6table line1 ip route add default via 1.2.3.5 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 table line1 ip rule add from 192.168.6.4 table line2 ip route add default scope global nexthop via 1.2.3.5dev 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 ------=_Part_21868_12010069.1160729662468 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline try this


echo "11 line1" >> /etc/iproute2/rt_tables
echo "12 line2" >> /etc/iproute2/rt_tables

ip route add 1.2.3.0/29 dev eth0 src 1.2.3.6 table line1
ip route add default via 1.2.3.5 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 table line1
ip rule add from 192.168.6.4 table line2

ip route add default scope global nexthop via 1.2.3.5 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
------=_Part_21868_12010069.1160729662468-- --===============0803939697== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0803939697==--