First up, I'm new to LVS. I've been reading about it for years but have
only just got round to trying it.
So far I've got one director and one real server up and running. I have
a IP tunnel working between them but the VIP isn't getting to apache on
the real server. Here are some details of the setup:
Director public IP 192.168.1.10
Real server public IP 192.168.1.12
VIP 192.168.1.20
Tunnel between the two 10.0.0.10 to 10.0.0.12
Pinging down the tunnel works.
director1:~# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.20:www rr
-> 10.0.0.12:www Tunnel 1 0 0
Requesting port 80 down the tunnel works:
director1:~# telnet 10.0.0.12 80
Trying 10.0.0.12...
Connected to 10.0.0.12.
Escape character is '^]'.
GET /
<html><body><h1>It works!</h1><h2>real1</h2></body></html>
Connection closed by foreign host.
The VIP can be pinged from the wider network and is set up on eth0:0 on
the director.
director1:~# ifconfig eth0:0
eth0:0 Link encap:Ethernet HWaddr 00:10:5C:DC:01:98
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xec00
However a request to port 80 on the VIP doesn't give a response. The
InActConn count goes to 1 in ipvsadm -l. I'm sure I'm missing something
simple but I'm pretty stuck right now. Any clues or solutions?
--
Daniel
|