Operating System - Linux
1835274 Members
2751 Online
110078 Solutions
New Discussion

redundant dsl connection -- plz help

 
Maaz
Valued Contributor

redundant dsl connection -- plz help

# rpm -q iptables
iptables-1.3.5-13.2
# squid -v
Squid Cache: Version 2.6.STABLE12

we have two different dsl connections, say connection A(CA), and connection B(CB)

CA is connetced to the gateway machine(router+squid) via eth0.

CB is connetced to the gateway machine(router+squid) via eth1

gateway machine is connected to our lan, via eth2.

CA is the 2 Mb.
CB is the 256 Kb.

eth2 ip: 10.0.0.1/24
eth1 ip(CB): 192.168.1.2/24
eth0 ip(CA): 192.168.2.2/24


Now I want

1 Load Balancing as following:
1A)70% of the internet traffic will be out through CA.
1B)30% of the internet traffic will be out through CB.
1C)If CA is not working then all(100%) the traffic will be out through CB
1D)Once CA is available, automatically divide the load as 70% and 30%

-----

2, Just redundancy, but no load balancing:

2A)All the internet traffic will be out through CA, and CB is only used when CA is not working

2B)Once CA is available, automatically transfer all the internet traffic via CA

Currently I am not using CB(eth1), only the CA is used.

I have attached the iptables-script i am using on the gateway machine.

Plz help
Thanks n Regards
Maaz
1 REPLY 1
Stuart Browne
Honored Contributor

Re: redundant dsl connection -- plz help

Oh, that really isn't an easy thing to do unfortunately..

I'd start you off by pointing to the Advanced Linux Routing & Traffic Control Howto (http://lartc.org/).

Using 'tc' and associated tools, you should be able to do most of what you want.
One long-haired git at your service...