On Thu, 26 Apr 2007, ram prakash wrote:
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
why do you have x.x.x.2 configured on both eth0:1 and tunl0?
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,
Are the packets going through the director?
I am not getting the response from my
other real server that is 192.168.0.234
do you have the default gw set correctly for the
realservers?
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.
no. This shows that the ipvsadm table is set up to send to
two realservers. The "0" entries show that no connections
are open.
Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!
|