Hello,
We are currently setting up Linux Virtual Server and we are experiencing some
problems.
Our setup:
One loadbalancer with external ip on eth0 and 10.0.0.1/24 on eth0:1.
Two webservers with 10.0.0.21/24 and 10.0.0.22/24 on eth0 (with gateway
10.0.0.1).
Everything is on the same ethernet switch.
director is a ubuntu(kernel 2.6)
VIP = external ip
DIP = 10.0.0.1
RIP1 = 10.0.0.21
RIP2 = 10.0.0.22
configuration director/ipvsadm
ifconfig eth0:1 VIP netmask 255.255.255.0
sysctl -w net.ipv4.ip_forward=1
ipvsadm -A -t VIP:80 -s rr
ipvsadm -a -t VIP:80 -r RIP1:80 -m
ipvsadm -a -t VIP:80 -r RIP2:80 -m
the output of ipvsadm is:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP VIP:www rr
-> RIP1:www Masq 1 0 0
configuration Realservers
ifconfig eth0 RIP1/RIP2
route -add default gw DIP
ping DIP works
<client>arp -a outputs
? (10.0.0.1) at 00:0E:A6:2B:5F:F9 [ether] on eth0
<director> arp -a outputs
RIP1 (10.0.0.21) at 00:0E:A6:2B:5F:F1 [ether] on eth0
project1 (145.33.144.128) at 00:0A:E4:55:4A:A4 [ether] on eth0
jupiter.hio.ft.hanze.nl (145.33.144.225) at 00:0E:A6:7F:FE:B0 [ether] on eth0
On the director i can with 'lynx RIP1' connect to the webserver, but if i
connect to the VIP the brouwser is unable to connect to the remote host.
On a stand alone client i also can't connect to the loadbalancer.
I hope someone can help us.
vibint
|