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