Skip to contentSkip to conversation

Multiple gateways linux router + Load balance

DISCUSSION Mikado 1 participant 1 message Jan 19, 2005 PPP protocol drivers and compressors

lore
Share & tools
lore

Mikado

author
#0 lore raw

I'm making a router with 2 adsl lines. How can I use both lines with R-E-A-L load balancing on 2.4.x linux box and share these lines for hosts on LAN?

I've got some guides show the way of using Multipath routing + Equalizing between these routes but I cannot get real advantage of load balancing because the route-cache make connections to 1 address go the same route as the first connection to that address.

Is there any patch for kernel 2.4.x outside the wild to fix this situation?

Thank you, I need all your helps!

P.S: I attach a text file which shows my box structure down here!

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 [adsl-modem-1   ][adsl-modem-2   ]
 [192.168.1.150  ][192.168.1.150  ]
         +                +                    Hosts
         +                +                     on
         +                +                     LAN
=======eth0=============eth1========         ===  ===
=[192.168.1.10   ][192.168.2.10   ]=          +    +
=                                  =          +    +
=                                  =          +    +

= [192.168.0.10 ]eth2+++++[ switch ]
= =
= =
=[210.245.x.x ][203.113.x.x ]=
=======ppp0=============ppp1========

         +                +
         +                +
         +                +
         +                +
 [210.245.24.5   ][203.113.168.254]
 [isp1-gateway   ][isp2-gateway   ]
         +                +
         +                +
         +                +
         +                +

======================================================
INTERNET ENVIRONMENT

- adsl-modem-1 is used to make ppp0
adsl-modem-2 is used to make ppp1
- 210.245.x.x has network: 210.245.0.0/16
203.113.x.x has network: 203.113.0.0/16