Most organizations can't afford to have their Net connect go down for too long. Therefore, most have some form of a backup connection ready, probably an ISDN line, in case the primary connection fails. If you're like most organizations, the chances are that when your primary connection goes down, your system administrator manually switches to the other one. This process could take anywhere between 15 to 20 mins or even longer depending upon how ready the backup setup is. Of course, it also depends upon the availability of the person who has to do the job. Then it would take the same amount of time to return to the primary connection once it recovers. There's an easy way out-automatic switchover.
We used PCQLinux 8.0 configured as a failover gateway. You'll need to put three network cards into this Linux box. If you already have a Linux-based proxy running, then the chances are that it already has two network cards (eth0 and eth1), one connecting to your LAN and the other to your Internet router. You just need to add a third card to this box and connect it to your backup Internet router. For convenience, we'll say that eth0 and eth1 are connected to the primary and secondary Internet routers, respectively.
Assign the IP address given by your ISP to the first two network cards. We assigned eth0=192.168.1.2 and eth1=192.168.2.2 for convenience, which are private IPs. You'll have to replace them with the public IPs that you got from your ISP. Of course, if you're using a dial-up ISDN line, then assign it the same subnet IP as that of your ISDN router. Assign an IP address to the third network card based on your local LAN subnet (eth1=192.168.3.1).
You can do these configurations using Xwindow from Start>System Settings>Network. This will open a network configuration window, which will show all the network card on your system. Double click on the LAN card icon you want to configure, select the 'Statically set IP address' radio button and assign the IP address with subnet mask.
After this, enable IP forwarding on the Linux box. For this, open the file /etc/sysclt.conf from a terminal window. Here, you'll find an entry 'net.ipv4.ip_forward = 0'. Set its value to 1 and save the file. Now execute a command sysctl –p from the # prompt to enable IP forwarding.