Hi all,
I'm using RedHat 6.2 , kernel version 2.2.14.
I'm using the following commands.
ipvsadm -A -u 192.5.2.115:9200 -s rr
ipvsadm -a -u 192.5.2.115:9200 -r 10.10.1.2:9200 -m
Obviously the machine running ipvs has 2 ip-address
192.5.2.115 and 10.10.1.100.
The second command however does not add the
destination because in the file ip_vs.c and function
ip_vs_add_dest it returns 0 as destination address ie
mctl->u.vs_user.daddr is 0.
The forwarding commands are
echo "1" > /proc/sys/net/ipv4/ip_forward
ipchains -A forward -j MASQ -s 10.10.1.0/24 -d
0.0.0.0/0
I assume the Load Balancer need necessarily have a
real ip and we can use two networks like i have set up
above to understand the working.
Could anybody please suggest how to add the real
server.
Thanks and regards,
Arun.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
|