LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS Routing Problems

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] LVS Routing Problems
From: Jason Stubbs <j.stubbs@xxxxxxxxxxxxxxx>
Date: Sat, 19 Apr 2008 20:27:27 +0900
On Saturday 19 April 2008 20:07:02 JST, Madan KN wrote:
> Hi Folks,
> Am having problems load balancing tomcat port 8080 with the following
> configurations:
> Btw, Am new to configuring LVS. So please help me resolving my problem.
>
> ----------------------------------------------------------
> Trying to use LVS-NAT
> ----------------------------------------------------------
> Director1       192.168.1.10
> Real Server 1: 192.168.1.58
> Real Server 2: 192.168.1.60
> Real Server 3: 192.168.1.62

The tcpdumps you provided were what happens when accessing real server 1 from 
the director, right? What about from a client? Is the client you are testing 
from on the 192.168.1.0/24 network? If so, the following is happening:

client => director       192.168.1.xx:192.168.1.10
director => real server  192.168.1.xx:192.168.1.58
real server => client    192.168.1.58:192.168.1.xx

The client isn't expecting packets from 192.168.1.58 and so throws them away 
(possibly sending a RST as well). With LVS-NAT, the return packets from the 
real servers need to flow via the director to the client so that RIP:CIP can 
be changed back to VIP:CIP.


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