From mboxrd@z Thu Jan 1 00:00:00 1970 From: sonu chouhan Date: Wed, 12 Dec 2007 12:03:51 +0000 Subject: [LARTC] bgp require in multigateway routing Message-Id: <368077.76072.qm@web32515.mail.mud.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1235749729==" List-Id: To: lartc@vger.kernel.org --===============1235749729== Content-Type: multipart/alternative; boundary="0-500998866-1197461031=:76072" Content-Transfer-Encoding: 8bit --0-500998866-1197461031=:76072 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi all, first i wann to explain my network & it's problem, i am using a redhat el5 for multigateway routing, i have 3 adsl lines which is connected with eth0, eth2 and eth3. eth1 is my local network. those 3 lines comes with adsl modem from same isp with equal bandwidth (512 Kbps). In this adsl modems there is one lan and one wan port, adsl modem's lan ip is gateway for my linux box, some times wan port of the modem got hang and that time lan ip of modem does up and accessable, so for my linux box gateway is up but internet is down of this gateway, but linux box seem this like running gateway and it's continusly send request to this gateway, so that time failover routing not work, so i need it's solution. somebody suggest me to use border gateway protocol for this, but i don't have any knowledge about this protocol that it will useful for me our not, and plz also guide me how to configure this protocol. sorry for my poor english thanks in advance sonu --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-500998866-1197461031=:76072 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi all,
first i wann to explain my network & it's problem,
i am using a redhat el5 for multigateway routing, i have 3 adsl lines which is connected with eth0, eth2 and eth3. eth1 is my local network.
those 3 lines comes with adsl modem from same isp with equal bandwidth (512 Kbps).
In this adsl modems there is one lan and one wan port, adsl modem's lan ip is gateway for my linux box, some times wan port of the modem got hang and that time lan ip of modem does up and accessable, so for my linux box gateway is up but internet is down of this gateway, but linux box seem this like running gateway and it's continusly send request to this gateway,
so that time failover routing not work, so i need it's solution.
somebody suggest me to use border gateway protocol for this, but i don't have any knowledge about this protocol that it will useful for me our not, and plz also guide me how to configure this protocol.

sorry for my poor english

thanks in advance

sonu


Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-500998866-1197461031=:76072-- --===============1235749729== 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 --===============1235749729==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Radek 'Goblin' Pieczonka" Date: Wed, 12 Dec 2007 14:18:45 +0000 Subject: Re: [LARTC] bgp require in multigateway routing Message-Id: <475FEDC5.3040503@pentex.pl> List-Id: References: <368077.76072.qm@web32515.mail.mud.yahoo.com> In-Reply-To: <368077.76072.qm@web32515.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > somebody suggest me to use border gateway protocol for this, but i > don't have any knowledge about this protocol that it will useful for > me our not, and plz also guide me how to configure this protocol. considering the bandwidth, i dont think your ISP would even start to think about BGP, not to mention the fact that as long as you use the same ISP I'd rather think of OSPF or even RIPv2. Also, there is a question of support on modem, as from what you say its actually a router with adsl modem integrated, so it should take part of dynamic routing. All in all, first question to ask is what your ISP is willing to do in this case. As an alternative you can always run some checks on links and switch routing information (aspecially default route, or selection of routing table in policy routing) in static table from some cron script / daemon accordingly. -- Radek aka Goblin goblin@pentex.pl _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc From mboxrd@z Thu Jan 1 00:00:00 1970 From: sonu chouhan Date: Thu, 13 Dec 2007 14:12:36 +0000 Subject: Re: [LARTC] bgp require in multigateway routing Message-Id: <211997.64923.qm@web32513.mail.mud.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0612968021==" List-Id: References: <368077.76072.qm@web32515.mail.mud.yahoo.com> In-Reply-To: <368077.76072.qm@web32515.mail.mud.yahoo.com> To: lartc@vger.kernel.org --===============0612968021== Content-Type: multipart/alternative; boundary="0-190205591-1197555156=:64923" Content-Transfer-Encoding: 8bit --0-190205591-1197555156=:64923 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Thanks a lot for your reply, my isp doesn't support bgp, so i have a second chance to write a script for this, but my question is, if i run a script which will detect dead route and then delete that route, all is fine but after deleting route how can i know that this route is working again and need to add it again. plz help me and if you have any script like this plz provide me. thanks again sonu.... > somebody suggest me to use border gateway protocol for this, but i > don't have any knowledge about this protocol that it will useful for > me our not, and plz also guide me how to configure this protocol. considering the bandwidth, i dont think your ISP would even start to think about BGP, not to mention the fact that as long as you use the same ISP I'd rather think of OSPF or even RIPv2. Also, there is a question of support on modem, as from what you say its actually a router with adsl modem integrated, so it should take part of dynamic routing. All in all, first question to ask is what your ISP is willing to do in this case. As an alternative you can always run some checks on links and switch routing information (aspecially default route, or selection of routing table in policy routing) in static table from some cron script / daemon accordingly. -- Radek aka Goblin goblin@pentex.pl ------------------------------ --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-190205591-1197555156=:64923 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Thanks a lot for your reply,
my isp doesn't support bgp, so i have a second chance to write a script for this,
but my question is, if i run a script which will detect dead route and then delete that route, all is fine but after deleting route how can i know that this route is working again and need to add it again. plz help me and if you have any script like this plz provide me.
thanks again

sonu....

> somebody suggest me to use border gateway protocol for this, but i 
> don't have any knowledge about this protocol that it will useful for
> me our not, and plz also guide me how to configure this protocol.

considering the bandwidth, i dont think your ISP would even start to
think about BGP, not to mention the fact that as long as you use the
same ISP I'd rather think of OSPF or even RIPv2. Also, there is a
question of support on modem, as from what you say its actually a
router
with adsl modem integrated, so it should take part of dynamic routing.
All in all, first question to ask is what your ISP is willing to do in
this case. As an alternative you can always run some checks on links
and
switch routing information (aspecially default route, or selection of
routing table in policy routing) in static table from some cron script
/
daemon accordingly.

--
Radek aka Goblin
goblin@pentex.pl


------------------------------


Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-190205591-1197555156=:64923-- --===============0612968021== 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 --===============0612968021==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Taylor Date: Thu, 13 Dec 2007 17:09:40 +0000 Subject: Re: [LARTC] bgp require in multigateway routing Message-Id: <47616754.2090105@riverviewtech.net> List-Id: References: <368077.76072.qm@web32515.mail.mud.yahoo.com> In-Reply-To: <368077.76072.qm@web32515.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On 12/13/07 08:12, sonu chouhan wrote: > my isp doesn't support bgp, so i have a second chance to write a > script for this, but my question is, if i run a script which will > detect dead route and then delete that route, all is fine but after > deleting route how can i know that this route is working again and > need to add it again. plz help me and if you have any script like > this plz provide me. I think you will want to delete the route (or mark it dead) in your (main?) routing table that gets used by most of your traffic and leave additional administrative / test routing tables alone. With the additional administrative / test routing tables you can have your test traffic go out the routes that would otherwise not be used by your normal traffic. Thus you can have test scripts see if the routes are good or not. If the routes are good, you can re-add the routes to your mail (?) routing table. Another idea is to use different routing tables based on the connection status. I.e. have main_both, main_isp_a, and main_isp_b routing tables that are used for your normal traffic. If something happens, just change the routing table that is used from main_both to main_isp_. Changing which routing table is used is probably going to be easier than altering a routing table. Just to be clear, you will still want to have test_isp_a and test_isp_b routing tables so you can direct your test traffic to use either connection. So all in all, this route, you will have five routing tables: main_both, main_isp_a, main_isp_b, test_isp_a, and test_isp_b. Grant. . . . _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nickola Kolev Date: Fri, 14 Dec 2007 08:49:33 +0000 Subject: Re: [LARTC] bgp require in multigateway routing Message-Id: <20071214104933.78c30555.nikky@mnet.bg> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1084610267==" List-Id: References: <368077.76072.qm@web32515.mail.mud.yahoo.com> In-Reply-To: <368077.76072.qm@web32515.mail.mud.yahoo.com> To: lartc@vger.kernel.org --===============1084610267== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__14_Dec_2007_10_49_33_+0200_fk_QR36KFv1BQ9F=" --Signature=_Fri__14_Dec_2007_10_49_33_+0200_fk_QR36KFv1BQ9F= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =D0=9D=D0=B0 Thu, 13 Dec 2007 06:12:36 -0800 (PST) sonu chouhan =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0: > Thanks a lot for your reply, > my isp doesn't support bgp, so i have a second chance to write a > script for this, but my question is, if i run a script which will > detect dead route and then delete that route, all is fine but after > deleting route how can i know that this route is working again and > need to add it again. plz help me and if you have any script like > this plz provide me. thanks again sonu.... You can take a look at this document: http://blog.taragana.com/index.php/archive/how-to-load-balancing-failover-w= ith-dual-multi-wan-adsl-cable-connections-on-linux/ The script mentioned is working as a charm. [ cut ] --=20 Regards, Nickola Kolev --Signature=_Fri__14_Dec_2007_10_49_33_+0200_fk_QR36KFv1BQ9F= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHYkOg/g+8nwXNejkRApNrAJ44rQbZuZKhKA5x3/ceN3ifpSXkhwCguJyG JIft+lygqdv8Uyxk7dLdGNY= =TaUZ -----END PGP SIGNATURE----- --Signature=_Fri__14_Dec_2007_10_49_33_+0200_fk_QR36KFv1BQ9F=-- --===============1084610267== 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 --===============1084610267==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Manish Kathuria" Date: Fri, 14 Dec 2007 13:52:27 +0000 Subject: Re: [LARTC] bgp require in multigateway routing Message-Id: <1df4abe60712140540y723f54flf8b22fdf5bcb06d2@mail.gmail.com> List-Id: References: <368077.76072.qm@web32515.mail.mud.yahoo.com> In-Reply-To: <368077.76072.qm@web32515.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On 12/13/07, sonu chouhan wrote: > Thanks a lot for your reply, > my isp doesn't support bgp, so i have a second chance to write a script for > this, > but my question is, if i run a script which will detect dead route and then > delete that route, all is fine but after deleting route how can i know that > this route is working again and need to add it again. plz help me and if you > have any script like this plz provide me. > thanks again > > sonu.... > I had posted a script on this list early this year. You can check out the link and use the script. http://mailman.ds9a.nl/pipermail/lartc/2007q1/020170.html You will have to modify it since this one is for two internet links whereas you have three links. But I think it should be easy to do, just the number of cases would increase. You will have to take care of all possible scenarios (all 3 links active, any two links active and any one link active) and set the default route for these 7 cases. -- Manish Kathuria Tux Technologies http://www.tuxtechnologies.co.in/ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc