LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

lvs-nat configuration issues

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: lvs-nat configuration issues
From: ram prakash <rkalapala@xxxxxxxxxxx>
Date: Fri, 27 Apr 2007 13:51:58 +0100 (BST)
Hi All,

I am close to getting my first LVS up and running.

I am following this guideline:

http://www.ultramonkey.org/papers/lvs_tutorial/html/

My goals is to have a VIP at 192.168.1.2 and forward
to real servers outside of that network that is
192.168.0.234 and 192.168.0.213.

Here 192.168.0.213 is the real IP address where my LVS
is Installed.

I have followed following steps to configure lvs.
net.ipv4.ip_forward = 1
ifconfig eth0:1 192.168.1.2 netmask 255.255.255.0 up
ipvsadm -A -t 192.168.1.2:80 -s rr
ipvsadm -a -t 192.168.1.2:80 -r 192.168.0.213:80 -m -w
1
ipvsadm -a -t 192.168.1.2:80 -r 192.168.0.234:80 -m -w
1
ifconfig tunl0 192.168.1.2 netmask 255.255.255.0

Now I tried to open http://192.168.1.2 from the other
machine in 192.168.1.x network. Now I am able to get
only response from local machine that is
192.168.0.213, I am not getting the response from  my
other real server that is 192.168.0.234

When I execute ipvsadm -L -n I am getting below
result.
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight
ActiveConn InActConn
TCP  192.168.1.2:80 rr
  -> 192.168.0.213:80             Local   3      0    
     0         
  -> 192.168.0.234:80             Masq    3      0  
        0 

Here it is showing that, It is sending request to both
real servers. But I am getting only response from one
server only. 

My main goal is to get the response from both real
servers when I try to connect from VIP.

Can please any one help me in this regard.

Thank You,

Best Regards,
Prakash.



      Send a FREE SMS to your friend's mobile from
Yahoo! Messenger. Get it now at http://in.messenger.yahoo.com/


      Add online presence to your web pages, find out how here - 
http://messenger.yahoo.com/addpresence.php


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