> I just re-configured it so that local node is 127.0.0.1
> as per Joe's email:
It doesn't matter. IPVS will treat any host with a local IP address as
> IP Virtual Server version 0.8.1 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 10.122.15.41:80 rr
> -> 192.168.0.2:80 Masq 1 0 0
> -> 127.0.0.1:80 Local 1 0 0
I just wanted the *IP* routing table not the *IPVS* one. On both
> ifconfig on Machine 1 gives:
> eth0 Link encap:Ethernet HWaddr 00:40:95:2D:08:E9
> inet addr:10.122.15.41 Bcast:10.122.255.255 Mask:255.255.0.0
First netmask mistake. It's not really a big problem as long as it's set
with way on all machines around, but network 10.0.0.0 is a class A
network, so its netmask is 255.0.0.0.
BTW, eth0 = public interface, holding the VIP. It should not be set this
way. Will sum up later on.
> eth1 Link encap:Ethernet HWaddr 00:00:21:DA:0F:38
> inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
Good netmask, eth1 = private interface, real servers dedicated network.
> machine 2
> eth0 Link encap:Ethernet HWaddr 00:50:BA:F0:6A:7B
> inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
why the hell do you have a 192. address on the public interface whereas
it's a private address ?
> eth1 Link encap:Ethernet HWaddr 00:50:BA:0A:02:E4
> inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
This seems correct.
OK, here is the way you should probably set the IP stuff :
host 1, eth0 = 10.122.15.41 (DIP1)
host 1, eth0:0 = 10.122.15.40 (VIP)
host 1, eth1 = 192.168.0.41 (RIP1)
host 1, eth1:0 = 192.168.0.254 (default GW for private 192. network)
host 1, default gateway = 10.whatever.it.is
host 2, eth0 = 10.122.15.42 (DIP2)
host 2, eth1 = 192.168.0.42 (RIP2)
host 1, default gateway = 192.168.0.254
> 2) What do I do to configure my NAT Router?
In lvs.cf you should have a nat_router line or something close. If
you're using piranha-gui, you've forgotten a field.
But whatever version of piranha you're using, you won't be able to do
what you initialy wanted to (2 boxes, acting both as RS and directors)
without applying one of my patches (you'll find them on the piranha
Finnaly, to simplify everything, do *not* customize apache until it
doesn't work fine. Leave it listening on every address.
Centre de contacts - Experian France