Using LVS to replace Netscaler Load Balancer
Philip M
disordr at gmail.com
Thu Jan 18 20:50:41 GMT 2007
On 1/18/07, Bill Omer <bill.omer at gmail.com> 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
Search lvs-users Archives
More information about the lvs-users
mailing list