load balancing, fail-over



I have set up an advanced linux router implementing load balancing and
failover using Julian Anastasov's patch and following Christoph Simon's
Nano-Howto to use more than one independent internet connection.

The router is load balancing between 2 external independent Internet
lines. I have written a PERL script to check if a connection is down.
If a connection is down, the script will bring down the corresponding
interface. It later checks if the connection is back up by bringing up
the down interface with a metric of 19 and pinging 3 different public
websites through that interface. If all 3 pings are successful then it
changes the metric to 0. If it fails, the script will bring the
interface back down.The problem I'm having is when the down interface
is brought back up by the script, new sessions intiated by a web
browser from the local area network stall. However, connection through
the other working interface is fine.

In addition, bringing up the down interface by hand from the command
prompt using the ifup command works fine versus if the script executes
it using the PERL's system command.

.



Relevant Pages

  • Re: BASH script to list previous IP Addresses
    ... | Here's the part of my script I have so far... ... PPP connection by my ISP, but have been reluctant to code the usually ... ~ - the name of the logical interface over which the connection has been ...
    (alt.os.linux)
  • Re: Can the net connection binding order be changed via script or
    ... >>>network and I want to avoid having docked laptops use the wireless connection ... >> Instead of writing a script, and having the script run when docking or undocking ... >-Is there a way to view the automatically set metrics? ... When you adjust the metric for an IP interface, ...
    (microsoft.public.windowsxp.network_web)
  • Re: how to keep tcpdump running?
    ... > I have a dialup connection on which I would like to keep tcpdump running ... > up, the raw socket is broken, too, and tcpdump exits losing its state. ... > trying to re-establish the raw socket and when the interface comes back, ... to do is wrap tcpdump up in a script that runs tcpdump with the ...
    (comp.os.linux.development.system)
  • Re: Problem configuring NAT to share Internet Connection
    ... One of my NICs in the server connect to a DSL ... modem and it connects to internet. ... > interface, that connects to the DSL modem, LAN interface, that connects to ... >> 7.- To connect server to Internet, I create a new network connection. ...
    (microsoft.public.win2000.ras_routing)
  • Re: Long Time Samba No Work-Need Expert Help On Samba/Networking
    ... I can ping the WinXP and Ubuntu pcs very ... Yielding connection to IPC$ ... added interface ip=192.168.1.64 bcast=192.168.1.255 ... Default User Disk ...
    (Ubuntu)