Two ISP connections

James james at towardex.com
Wed Dec 10 08:41:23 PST 2003


> Hello.
> I have a server with two ISP connections: a flat ADSL with an ISP and pay-per-traffic HDSL with another.
> I'd like to use ADSL whenever possible, but switch to HDSL in case the first line drops.
> Any pointer?
> 
>  bye & Thanks
>         av.

Write a script and cronjob it to check every 5 minutes.

The script should:

   a) ping both ISP gateways or use other means to check connectivity
   b) If the primary connection is down, remove the default route and
      point the default route to backup ISP.
   c) If using NAT, flush the nat rules, and re-map the internal network
      to backup ISP's IP address.
   d) If the primary ISP is back online, do vice versa to switch back.

That's one way of doing it. You can also write a daemon too that's more robust
than a simple shell script.

-J

-- 
James Jun (formerly Haesu)
Network Operations
TowardEX Technologies, Inc.
Consulting, colocation, web hosting, network design and implementation
http://www.towardex.com  | james at towardex.com
Cell: (978)394-2867      | Office: (978)263-3399 Ext. 170
Fax: (978)263-0033       | AIM: GigabitEthernet0
NOC: http://www.twdx.net | POC: HAESU-ARIN, HDJ1-6BONE


More information about the freebsd-net mailing list