[Ilugc] configuring 2 internet connections
Mohan Sundaram
mohan.tux at gmail.com
Wed Jun 13 14:31:17 IST 2007
Dëêþàñ Çhäkrãvârthÿ wrote:
> Thanigairajan murugan wrote:
>> Hai all,
>> we have 2 broadband connections.
>> we are using Debian etch.
>> Our need is, if one of them has failured , then the
>> other one will up On our LAN
>> how can we achieve this ?
>> is there any opensource for this?
>>
>>
>>
> http://lartc.org/howto/lartc.rpdb.multiple-links.html
> But this does not support failure i guess, May be other experts here can
> help.
> Good luck
> Deepan
Let us call the i/fs eth0 and eth1. Write a bash script to check
reachability of the gateway of provider 1 thro' eth0 and provider 2
thro' eth1 using ping. Based on the return value of the command (true/
false), clear and redefine the default route as either single hop via
the link that is up or as a multiple nexthop default route via both
interfaces. Run this via cron every 3 minutes or as frequently as you
think is needed.
This works well.
Mohan
More information about the ilugc
mailing list