John R. Shannon wrote:
> On Monday 06 February 2006 06:46, Nickolay A Burkov wrote:
>> Hi, All!
>>
>> I have a router with two external ethernet links to two different ISPs.
>> Could someone recommend me a good technique to organize failover with
these
>> two channels (similar to trunk(4) but on higher level)? I thought about
>> writing the Perl script to periodically ping destination on master ISP and
>> if it is failure, reconfigure routing tables and NAT to slave provider's
>> addr. Cause of this is a very network topology dependent things (timeouts,
>> way of check dst, etc..) i wonder if somebody has a good expirience with
>> this situation.
>>
>> br
>
> I use ifstated for that purpose.
>

I do have a similar situation in my work. We have two ADSL connections
to two different ISP's. I did an ifstated configuration and some shell
scripts that basically do the following things:

a) check if any of the internet links in the modems are up, using snmp
(if your device has support to snmp, the majority of the DSL/ADSL
routers does)
b) if any of them are down, mail the root to warn about the situation,
load the pf rule set pertaining the other link, set the gateway to the
other modem and vice versa
c) if any of the modems are down (i mean physically down) it point's to
the other and also mail root.

I do some other tricks, as rebooting the modems. I'm still testing it,
but today it behaved very well. I only need to balance the incoming
services now.

Is you want more info, i can give privately.

My regards,

--
Giancarlo Razzolini
Linux User 172199
Moleque Sem Conteudo Numero #002
Slackware Current
Snike Tecnologia em Informatica
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]

Reply via email to