LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS Routing Problems

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS Routing Problems
From: "Madan KN" <madan.kn@xxxxxxxxx>
Date: Sat, 19 Apr 2008 17:15:54 +0530
Hi Jason,

Yes all my realservers are routed through director1 (192.168.1.10).


DEVICE=eth0
#BOOTPROTO=none
BOOTPROTO=static
HWADDR=00:1D:09:6B:53:D7
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.58
GATEWAY=192.168.1.10
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes


Please let me know if am missing anything. It would be really great full if
this starts working.

Thanks,
Madan KN


On Sat, Apr 19, 2008 at 4:57 PM, Jason Stubbs <j.stubbs@xxxxxxxxxxxxxxx>
wrote:

> 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.
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

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