[LARTC] Load balancing with failover

Anderson O Muniz andybr@bol.com.br
Fri, 2 Jan 2004 10:59:57 -0200


This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C3D11F.8F463440
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

Put a script to monitor a gateway with crond job and if it fails =
automatically change to gateway 2, you gotta it?

[]'s
Anderson

  ----- Original Message -----=20
  From: Tushar Thakker=20
  To: lartc@mailman.ds9a.nl=20
  Sent: Friday, January 02, 2004 5:08 PM
  Subject: [LARTC] Load balancing with failover


  Hi all,
  i have network setup with 3 gateways and a large number of intranet =
nodes,
  i want to do automatic load balancing with failover,
  i have put following ip rules and routes,

          ip rule add prio 222 table 222
          ip route add default table 222 proto static \
                  nexthop via $GWE1 dev $IFE1 \
                  nexthop via $GWE2 dev $IFE2 \
                  nexthop via $GWE2 dev $IFE3 \

  Now, i also want to do failover,
  but the point is that what shall i need to do about deleting the route =
cache as soon as some gateway becomes dead or unavailable,
  what the system will do on its own and what we need to do for this,
  i need a help,
  please guide me,
  thanx in advance,
  Regards,

  ----------------------------------------------------------------
  Tushar Thakker
  Elitecore Technologies Ltd.
  Ph: 9824080066 / 6405600 Ext-535
  ----------------------------------------------------------------
  Life gives all that one deserves, but not all that one desires...
  ----------------------------------------------------------------

------=_NextPart_000_003F_01C3D11F.8F463440
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Put a script to monitor a gateway with =
crond job=20
and if it fails automatically change to gateway 2, you gotta =
it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[]'s</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Anderson</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dtusharthakker@elitecore.com=20
  href=3D"mailto:tusharthakker@elitecore.com">Tushar Thakker</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dlartc@mailman.ds9a.nl=20
  href=3D"mailto:lartc@mailman.ds9a.nl">lartc@mailman.ds9a.nl</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, January 02, 2004 =
5:08=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [LARTC] Load balancing =
with=20
  failover</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i have network setup with 3 gateways =
and a large=20
  number of intranet nodes,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i want to do automatic load balancing =
with=20
  failover,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i have put following ip rules and=20
  routes,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ip=20
  rule add prio 222 table =
222<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ip=20
  route add default table 222 proto static=20
  =
\<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
  nexthop via $GWE1 dev $IFE1=20
  =
\<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
  nexthop via $GWE2 dev $IFE2 \</FONT></DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
  nexthop via $GWE2 dev $IFE3 \<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Now, i also want to do =
failover,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>but the point is that what shall i =
need to do=20
  about deleting the route cache as soon as some gateway becomes dead or =

  unavailable,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>what the system will do on its own =
and what we=20
  need to do for this,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i need a help,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>please guide me,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>thanx in advance,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Regards,</DIV></FONT>
  <DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
  <DIV><FONT face=3DArial=20
  =
size=3D2>----------------------------------------------------------------=
<BR>Tushar=20
  Thakker<BR>Elitecore Technologies Ltd.<BR>Ph: 9824080066 / 6405600=20
  =
Ext-535<BR>--------------------------------------------------------------=
--<BR>Life=20
  gives all that one deserves, but not all that one=20
  =
desires...<BR>-----------------------------------------------------------=
-----</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003F_01C3D11F.8F463440--