LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] localnode issue

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] localnode issue
From: "Vishwanath T. K." <vishytk@xxxxxxxxx>
Date: Fri, 29 Aug 2008 15:34:44 +0530
Hi All,

I have configured the LVS in local node. The configuration included two
nodes (director+real server)

VIP: 192.168.2.200

Node configuration:

node1:
         ifconfig lo:0 192.168.2.200 netmask 255.255.255.255 broadcast
192.168.2.200 up
         eth0: 192.168.2.50/24 gateway 192.168.2.254, dev eth0
         HTTP service listening on all interfaces.

IPVSADM:
         ipvsadm -A -t 192.168.2.200:80 -s rr
         ipvsadm -a -t 192.168.2.200:80 -r 192.168.2.50:80
         ipvsadm -a -t 192.168.2.200:80 -r 192.168.2.51:80 -g


node2:
         eth0: 192.168.2.51/24 gateway 192.168.2.254, dev eth0
         HTTP service listening on all interfaces.

Client IP: 192.168.2.1

Now the problem i am having

When i access 192.168.2.200 from the client, and when the service request is
sent to the node2 nothing happens, while then the service request is
forwarded to 192.168.2.50 (real IP on node1) the web pages are served.

IPVSADM - connection output

[root@node1 ~]# ipvsadm -lnc
IPVS connection entries
pro expire state       source             virtual            destination
TCP 01:57  FIN_WAIT    192.168.2.1:50307  192.168.2.200:80   192.168.2.50:80
TCP 00:52  SYN_RECV    192.168.2.1:50294  192.168.2.200:80   192.168.2.51:80

Why the second node is not serving any request ? Is there
setup/configuration left on the node2 ?

Any help would be greatly appreciated.

Regards,

Vishy

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