I am close to getting my first LVS up and running.
I am following this guideline:
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
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
ipvsadm -a -t 192.168.1.2:80 -r 192.168.0.234:80 -m -w
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
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight
TCP 192.168.1.2:80 rr
-> 192.168.0.213:80 Local 3 0
-> 192.168.0.234:80 Masq 3 0
Here it is showing that, It is sending request to both
real servers. But I am getting only response from one
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.
Add online presence to your web pages, find out how here -