LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS making load balancing in a set of computer in the same n

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] LVS making load balancing in a set of computer in the same network
From: "Leandro Sales" <leandroal@xxxxxxxxx>
Date: Tue, 2 Dec 2008 17:05:28 +0000
Hello,
   I have three computers in the same network (192.168.1.0/24). In one
computer I installed LVS and I want to enable load balancing between
the two others computers. The commands that I executed in the LVS
machine was:

ipvsadm -A -t 192.168.1.1:80 -s wrr
ipvsadm -a -t 192.168.1.1:80 -r 192.168.1.2:80
ipvsadm -a -t 192.168.1.1:80 -r 192.168.1.3:80

   I used a browser running on a cliente with ip 192.168.1.4 to make
requests to 192.168.1.1. I used tcpdump in the 192.168.1.2 machine and
notice that the request arrives there, but the client does not receive
a response. How to solve this issue? I already had this problem when I
configured a network using iptables. What happened in that case was
that the client expect a response from 192.168.1.1 not from
192.168.1.2, that since it has a router to 192.168.1.0/24 tries to
directly response to the client, but the client expects a response
from 192.168.1.1, since it was that host that it sent the request.
   Just for you information, I also tried the two last commands above
using -m option, but nothing changed.
   Thank you, any comment/suggestion will be greatfully accepted.

Leandro.


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