how to do switching between two gateways
Hello list, we have two dsl gateways with two DSL lines. One line is used for VPN, the other for the rest. I want to test the availability of both lines and switch routing to the other while line one is not available, and back when everything works again. I have read about heartbeat and linux-ha, it works fine, but not for that purpose. Or did I miss something? How would you do that? Any help appreciated! Thanks! -- Mit freundlichen Grüßen Markus Feilner --------------------------- Bitte beachten Sie unsere neuen Adressdaten! Vielen Dank. --------------------------- Feilner IT Linux & GIS Linux Solutions, Training, Seminare und Workshops - auch Inhouse Beraiterweg 4 93047 Regensburg fon +49 941 9465243 fax +49 941 9465244 mobil + +49 170 3027092 mail mfeilner@feilner-it.net web http://www.feilner-it.net
Hello list, we have two dsl gateways with two DSL lines. One line is used for VPN, the other for the rest. I want to test the availability of both lines and switch routing to the other while line one is not available, and back when everything works again. I have read about heartbeat and linux-ha, it works fine, but not for that purpose. Or did I miss something? How would you do that? Any help appreciated! Thanks! ===================================== Take a look at http://www.lartc.org/ Lots of goodies that address what you want.
On Tue, 12 Apr 2005 Bill.Light@kp.org wrote:
Hello list, we have two dsl gateways with two DSL lines. One line is used for VPN, the other for the rest. I want to test the availability of both lines and switch routing to the other while line one is not available, and back when everything works again. I have read about heartbeat and linux-ha, it works fine, but not for that purpose. Or did I miss something? How would you do that?
I'm a bit confused as to what you're trying to achieve. The VPN link would be there to handle incoming calls. Your two external connections would have different IP addresses and FQDN. As far as I can understand you'll need to update DNS to move the VPN connections from the outside from one uplink to the other. It's slow, but unless you've got better access to the routers at your provider (and it has to be _one_ provider) than I do, that's how it needs doing. If this is just for routing traffic generated from the inside of your nets it's more trivial. In that case I'd run something like this continuously on both interfaces !#/bin/bash while ping -c 1 external-ip-address; sleep 5; done Lots of stuff that needs doing once the link is down Naive and needs refining, but that'll work as a trigger. After that it's just a case of using what's in the Advanced Routing Howto. Have fun. :) Bjørn -- Bjørn Tore Sund Phone: (+47) 555-84894 Stupidity is like a System administrator Fax: (+47) 555-89672 fractal; universal and Math. Department Mobile: (+47) 918 68075 infinitely repetitive. University of Bergen VIP: 81724 Support: system@mi.uib.no Contact: teknisk@mi.uib.no Direct: bjornts@mi.uib.no
participants (3)
-
Bill.Light@kp.org
-
Bjorn Tore Sund
-
Markus Feilner