Re: [newbie] Experimenting with LVS

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [newbie] Experimenting with LVS
From: Sébastien Bonnet <Sebastien.Bonnet@xxxxxxxxxxx>
Date: Tue, 25 Feb 2003 15:27:52 +0100
> I just re-configured it so that local node is
> 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 rr
>   ->                 Masq    1      0          0
>   ->                   Local   1      0          0

I just wanted the *IP* routing table not the *IPVS* one. On both
machines please.

> ifconfig on Machine 1 gives:
> eth0      Link encap:Ethernet  HWaddr 00:40:95:2D:08:E9
>           inet addr:  Bcast:  Mask:

First netmask mistake. It's not really a big problem as long as it's set
with way on all machines around, but network is a class A
network, so its netmask is

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:  Bcast:  Mask:

Good netmask, eth1 = private interface, real servers dedicated network.

> machine 2
> eth0      Link encap:Ethernet  HWaddr 00:50:BA:F0:6A:7B
>           inet addr:  Bcast:  Mask:

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:  Bcast:  Mask:

This seems correct.

OK, here is the way you should probably set the IP stuff :

host 1, eth0   =  (DIP1)
host 1, eth0:0 =  (VIP)
host 1, eth1   =  (RIP1)
host 1, eth1:0 = (default GW for private 192. network)
host 1, default gateway =

host 2, eth0   =  (DIP2)
host 2, eth1   =  (RIP2)
host 1, default gateway =

> 2) What do I do to configure my NAT Router?

In 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
mailing list).

Finnaly, to simplify everything, do *not* customize apache until it
doesn't work fine. Leave it listening on every address.

Sébastien Bonnet
  Centre de contacts - Experian France
<Prev in Thread] Current Thread [Next in Thread>