From: Shashikant Mundlik Date: Mon, 17 Apr 2006 15:22:04 +0000 Subject: RE: [LARTC] Problems in Dead Gateway Detection / Failover Message-Id: <4443afd2.68a0e4b7.1c72.ffffcad0@mx.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0793259838==" List-Id: References: <43D8CEAE.3010006@tuxspace.com> In-Reply-To: <43D8CEAE.3010006@tuxspace.com> To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============0793259838== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C6625F.1E234180" This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C6625F.1E234180 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Ren, Thanks for your help. But how do you check that you reach less than 20 of your sites. (do you mean 20 websites?). Will you able to share the script? That will be great help. Thanks and regards, Shashikant Mundlik System Administrator UBICS, Pune Phone: 91 20 2729 1004 x 138 Mobile : 91 9372 044015 www.ubics.com The UB Group DISCLAIMER AND PRIVILEGE NOTICE: This e-mail message contains confidential, copyright, proprietary and legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient must note and understand that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of UBICS, Inc. _____ From: Alessandro Ren [mailto:alessandro.ren@opservices.com.br] Sent: Monday, April 17, 2006 7:31 PM To: smundlik@ubicsindia.com Cc: manish@tuxspace.com; lartc@mailman.ds9a.nl Subject: Re: [LARTC] Problems in Dead Gateway Detection / Failover - MultipleISP Links I have a script that connects to 20 diferent sites on the port 80 coming from each link interface a have on my linux router. If I reach less than 20% of my sites, I assume the link is down and do all the routing and firewall adjustments to make the traffic goes to other routes, removing the problematic link out, setting ip rules, routes in tables and the main multipath default route and commenting in the firewall the MARKs the would go via the link thats down and it also sets QoS and tries to bring the link that is down back UP. Althought I've tested with only 3 links, it supports any number of them. It's works very nice so far. []s. Shashikant Mundlik wrote: Hi There, I am also trying to do the same for my network. I have two links from different ISPs and I want to configure a failover and load balancing Linux router. I am facing same problem here, that how to detect link failure and let Linux box switch the gateway. I know it works when the first gateway is physically down and not reachable. But what to do if my link is up but there is problem at nexthop level and its not routing packets to destination. Please tell me if this can be overcome by setting multipath routing. Another way I can think of doing this is to use a script which will check if the default route is alive every 15 mins and if not it will make changes in routing table and route the packets through different link. I don't know if this is the best way to do this. If any one know how to do this better please share. If you guys thinks this can work, lets help each other to write such scrip. I am new to LARTC and just now started learning it to solve my network problems. Please help me to achieve this. Thanks in advance. Regards, Shashikant Mundlik Pune, India. _____ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc -- __________________________________________________ Alessandro Ren OpServices Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 * phone 55(51)3061-3588 * fax 55(51)3061-3588 * mobile 55(51)8151-8212 * email alessandro.ren@opservices.com.br __________________________________________________ ------=_NextPart_000_0026_01C6625F.1E234180 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Ren,
 
Thanks for your help. But how do you check = that you=20 reach less than 20 of your sites. (do you mean 20=20 websites?).
Will you able to share the script? =
That will be great help.
 
Thanks and regards,
 

Shashikant Mundlik

 

System=20 Administrator

UBICS, Pune        = ;            =             &= nbsp;       
Phone:  = 91 20=20 2729 1004  x = 138  
Mobile= : 91 9372=20 044015

 

www.ubics.com

The UB=20 Group

DISCLAIMER=20 AND PRIVILEGE NOTICE:
This e-mail message = contains=20 confidential, copyright, proprietary and legally privileged information. = It=20 should not be used by anyone who is not the original intended recipient. = If you=20 have erroneously received this message, please delete it immediately and = notify=20 the sender. The recipient must note and understand that any views = expressed in=20 this message are those of the individual sender and no binding nature of = the=20 message shall be implied or assumed unless the sender does so expressly = with due=20 authority of UBICS, Inc.

 

 


From: Alessandro Ren=20 [mailto:alessandro.ren@opservices.com.br]
Sent: Monday, April = 17,=20 2006 7:31 PM
To: smundlik@ubicsindia.com
Cc:=20 manish@tuxspace.com; lartc@mailman.ds9a.nl
Subject: Re: = [LARTC]=20 Problems in Dead Gateway Detection / Failover - MultipleISP=20 Links


    I have a script that connects to 20 = diferent=20 sites on the port 80 coming from each link interface a have on my linux=20 router.
    If I reach less than 20% of my sites, I = assume the=20 link is down and do all the routing and firewall adjustments to make the = traffic=20 goes to other routes, removing the problematic link out, setting ip = rules,=20 routes in tables and the main multipath default route and commenting in = the=20 firewall the MARKs the would go via the link thats down and it also sets = QoS and=20 tries to bring the link that is down back UP.
    = Althought=20 I've tested with only 3 links, it supports any number of=20 them.
    It's works very nice so=20 far.

    []s.


Shashikant Mundlik wrote: =
Hi=20 There,
 
I am = also trying=20 to do the same for my network.
I have two links from different = ISPs and I=20 want to configure a failover and load balancing Linux=20 router.
 
I am = facing same=20 problem here, that how to detect link failure and let Linux box switch = the=20 gateway.
 
I = know it works=20 when the first gateway is physically down and not reachable. But what = to do=20 if my link is up but there is problem at nexthop level and its = not=20 routing packets to destination.
 
Please tell me if=20 this can be overcome by setting multipath routing. =
 
Another way I can=20 think of doing this is to use a script which will check if the default = route=20 is alive every 15 mins and if not it will make changes in routing = table and=20 route the packets through different link.
 
I = don't know if=20 this is the best way to do this. If any one know how to do this better = please=20 share.
 
If = you guys thinks=20 this can work, lets help each other to write such = scrip.
 
I am = new to LARTC=20 and just now started learning it to solve my network=20 problems.
 
Please help me to=20 achieve this.
 
Thanks in=20 advance.
 
Regards,
 

Shashikant=20 Mundlik

Pune, = India.


_______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mai= lman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

--
__________________________________________________=
Alessandro Ren
OpServices
Luciana de Abreu, 471 - Sala&nbs= p;403
Porto Alegre, RS - CEP 90570-060=
(   phone 55(51)3061-3588
4    fax 55(51)3061-3588
Q   mobile 55(51)8151-8212
:   email alessandro.ren@ops= ervices.com.br
__________________________________________________=
------=_NextPart_000_0026_01C6625F.1E234180-- --===============0793259838== 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 --===============0793259838==--