LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-DR setup with 3 hosts

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS-DR setup with 3 hosts
From: kwijibo@xxxxxxxxxx
Date: Fri, 28 Jan 2005 10:47:46 -0700
I am not quite sure I understand your setup but I am
don't think it is LVS-DR.  It looks like you are
assigning a private IP to your director and then
trying to use it as a virtual IP as well.  Then
you are trying to send the requests to public IP's
when I am not so sure your director knows how
to get to them.  It it almost like you are trying
to do LVS-NAT without the NAT, and backwards.  Usually
in a LVS-NAT setup the director has the public virtual
IP and the nodes have the private IP's.

In a LVS-DR the director doesn't even really need an
IP assigned to it.  It just needs to answer ARPS for
the virtual IP's and then know what to do with traffic
destined for those virtual IP's.

You may want to go over the documentation again and
make sure you understand the setup of different LVS
configurations.

Steve

Jan Schmidt wrote:
Hi,

since days I'm struggling with the setup of the mentioned configuration, perhaps anyone
on the list see's my mistake...

Initial situation: 3 host (all SLES9 kernel 2.6.5 and 3 nic ports) connected to a switch (Cisco C3548), one should act as director, the two others as Apache/MySQL host. These both nodes have respectively
an additional uplink to the director.
My first try was to setup this as described in the howto:

director:
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0:222 192.168.222.222 broadcast 192.168.222.222 netmask 255.255.255.255
route add -host 192.168.222.222 dev eth0:222
ipvsadm -C
ipvsadm -A -t 192.168.222.222:http -s wlc
ipvsadm -a -t 192.168.222.222:http -r 141.53.7.41:http -g -w 100
ipvsadm -a -t 192.168.222.222:http -r 141.53.7.43:http -g -w 100

hosts:
ifconfig lo:222 192.168.222.222 broadcast 192.168.222.222 netmask 255.255.255.255 up
route add -host 192.168.222.222 dev lo:222
echo 1 >/proc/sys/net/ipv4/conf/lo/arp_ignore
echo 2 >/proc/sys/net/ipv4/conf/lo/arp_announce
echo 1 >/proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 >/proc/sys/net/ipv4/conf/all/arp_announce

Apache is running on both hosts, but when connecting to director with telnet I get a timeout.
Scanning with nmap shows, that http port is in state 'filtered'.

Is there any "better" configuration (e.g. utilizing the both seperate connections from host to director) or
can somebody give me an advice whats wrong?

Thanks!

Jan

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users




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