LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

what's behind the curtain?

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: what's behind the curtain?
From: "Michael Cunningham" <m.cunningham@xxxxxxxxxxx>
Date: Wed, 30 Jan 2002 22:30:55 -0500
Hiya all.. 

I am trying to setup LVS to DR and RR 2 servers on the same network
and TUN RR 2 servers on a remote network.

I have been looking over the howtos and other scripts. I am confused
as the what is going on behind the scenes with all these different setup
scripts.
(Like configure). I want to be able to set everything up without the
help
of a script.
 
The Facts:) 
------------
RS1 IP = 137.236.77.21
RS2 IP = 137.236.77.22
RS3 IP = 137.236.40.20
RS4 IP = 137.236.40.21
DIP = 137.236.77.25
VIP = 137.236.77.30
RS1/2 and Director gateway = 137.236.77.100 (a router). 

I have fiigured out I need to run the following commands on the
Director. 
------------------------------------------------------------------------
-
modprobe ipip
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0:1 137.236.77.30 broadcast 137.236.77.255 netmask
255.255.255.0
ipvsadm -A -t 137.236.77.30:389 -s rr
ipvsadm -a -t 137.236.77.30:389 -r 137.236.77.21 -g -w 1
ipvsadm -a -u 137.236.77.30:389 -r 137.236.77.21 -g -w 1
ipvsadm -a -t 137.236.77.30:389 -r 137.236.77.22 -g -w 1
ipvsadm -a -u 137.236.77.30:389 -r 137.236.77.22 -g -w 1
ipvsadm -a -t 137.236.77.30:389 -r 137.236.40.20 -i -w 0
ipvsadm -a -u 137.236.77.30:389 -r 137.236.40.20 -i -w 0
ipvsadm -a -t 137.236.77.30:389 -r 137.236.40.21-i -w 0
ipvsadm -a -u 137.236.77.30:389 -r 137.236.40.21 -i -w 0

On each DR RS I need to run
------------------------------
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
ifconfig lo:1 137.236.77.30 netmask 255.255.255.255 up

On each TUN RS I need to run
--------------------------------
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ipip
ifconfig tunl0 0.0.0.0 up
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden
ifconfig tunl0 137.236.77.30 netmask 255.255.255.255 broadcast
137.236.77.30 up

Am I missing anything on the RSs or Director? 
Routing? Iptable stuff? I am confused.. 

Thanks.. Mike



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