LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: two internet links load balancing

To: "LVS" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, "Julian Anastasov" <ja@xxxxxx>
Subject: Re: two internet links load balancing
From: "Logu" <lvslog@xxxxxxxxx>
Date: Sat, 6 Oct 2001 15:19:21 +0530
Thanks Julian,
If you point me to some links or tutorial, it will be very much useful. Or
if you could put some more explanation, it will be easy for me to understand
as i am very new to this.

Thanks in advance
-Logu

>
> Hello,
>
> On Fri, 5 Oct 2001, Logu wrote:
>
> > Hi,
> > I have two isdn internet connection from two different isps. I am going
to
> > put an lvs_nat between the users and these two links so as to loadbalace
the
> > bandwidth. Is it possible.  I need your suggestions and advice for the
above
> > setup.
> > -Logu
>
> You can use the Linux's multipath feature:
>
> # ip ru
> 0:      from all lookup local
> 50:     from all lookup main
> ...
> 100:    from 192.168.0.0/24 lookup 100
> 200:    from all lookup 200
> 32766:  from all lookup main
> 32767:  from all lookup 253
>
> # ip r l t 100
> default  src DUMMY_IP
> nexthop via ISP1  dev DEV1 weight 1
> nexthop via ISP2  dev DEV2 weight 1
>
> # ip r l t 200
> default via ISP1 dev DEV1  src MY_IP1
> default via ISP2 dev DEV2  src MY_IP2
>
>
> You can add to this setup my dead gateway detection
> extension (for now only against 2.2):
>
> http://www.linuxvirtualserver.org/~julian/
>
> By this way you will be able fully to utilize the both lines
> for masquerading. Without this patch you will not be able to select
> different public IPs to each ISP. They are named "Alternative routes".
> Of course, in any case the management is not an easy task. It needs
> understanding.
>
> Regards
>
> --
> Julian Anastasov <ja@xxxxxx>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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