LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Making a "virtual" default gateway...

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Making a "virtual" default gateway...
From: Alexandre Cassen <Alexandre.Cassen@xxxxxxxxxx>
Date: Tue, 19 Jun 2001 20:32:26 +0200
>                                                                 Internet
>                                                                 /
> My users ---- Linux box with LVS - Internet
>                                                                 \
>                                                                 Internet
>
> What I wanna do is to assign all the users on my network with one default
> gateway, the LVS box. Is this possible? Has anyone done it? I think dynamic
> routing is the way but I'm not sure.

You could certainly do this with LVS, although I would hope that the routing
people had already handled this (although I'm not sure what the answer is).
You can have multiple default gw and the router will pick between them
(using some algorithm that I don't know) and presumably all ADSL lines
will get used equally.

As for doing by LVS (which I hope you don't have to do), you could set
up a director to be a router and setup like it was infront of 4 squid
boxes (you'll need the IP's of the other end of the ADSL link).

There's an example proxy server setup at

http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-8.html#ss8.17

(It's hard to figure out where to put these examples in the HOWTO.
This example is in fwmarks. I looked for it first in "squids",
then in transparent proxy, and then
I had to put my editor onto it, to find it in fwmark.)

Hi,

Damned Lotus Notes !

[ Repost]

I have tried some time ago that kind of setup. I have test 4 differents topology :

1. Using a dynamic routing protocol like BGP. Using BGP you can use cost onto your routing path. To setup a multipath Internet connection using BGP all the ISP connected to your BGP setting must be informed to add BGP their side. This setup is recommanded by ISP for eavy corporate Internet use. => It is mostly expensive due to ISP router side reconfiguration.

2. Implementing a loadsharing topology like discripbed into the "Linux 2.4 advanced routing HOWTO" section 9.5. You need here to use the same ISP for all your Internet connections because your ISP must implement the symetric config => This mean that ISP must support linux 2.4 loadsharing over multiple interface. This is rarely implemented by ISP because it is much more interresting implementing constructor integration that is more expensive => This is my feedback in France :/

3. Setting up router with multiple default gateway. That way you will loadbalance by TCP conversation. I have only implemented this on CISCO, your are limited to the max default gw number implemented (3 or 4 for CISCO).

4. Implement the solution discribed in the Joe LVS HOWTO. Loadbalancing a squid server pool, each squid directly connected to your ADSL line.

Personally, I prefer the LVS solution which is much more easy and recommanded because it is ISP configuration independent. I have tested that on a RTSP proxy pool.

Best regards,
Alexandre



















<Prev in Thread] Current Thread [Next in Thread>