LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Using LVS to replace Netscaler Load Balancer

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Using LVS to replace Netscaler Load Balancer
From: "Philip M" <disordr@xxxxxxxxx>
Date: Thu, 18 Jan 2007 12:50:41 -0800
On 1/18/07, Bill Omer <bill.omer@xxxxxxxxx> wrote:

> Today I successfully used LVS-TUN to accomplish what I needed. For my
basic
> tests, everything worked out fine. I still need to determine if this
will
> work on a production scale, as IP encapsulation brings about its own
issues
> with MTU sizes and packet fragmentation.
>
> Thanks,
>
> Philip


Can you show your DIP configuration and any RIP configuration needed?


<vip.ip.address> = "1.2.3.4" for this example
<RIP.ip.address> = "4.5.6.7" for this example

On the DIP, first load the ipip.ko kernel module (ensure your kernel
supports tunneled interfaces.
/sbin/ifconfig tunl0  1.2.3.4 netmask 255.255.255.255 up
/sbin/ipvsadm -A -t 1.2.3.4:80 -s rr
/sbin/ipvsadm -a -t 1.2.3.4:80 -r 4.5.6.7:80 -i -w 1     (here the port
designation :80 on the RIP is not really needed, and -i specifies to use the
tunneling method)

On the RIP, load the ipip.ko kernel module; then
/sbin/ifconfig tunl0 1.2.3.4 netmask 255.255.255.255 up

didn't even need to restart apache. it just worked at this point.
It's the very basic LVS-tun solution.

Bill, what iptables rules did you use to get your solution working?

Hope this helps...

Philip

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