LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: VIP setting at Director(LVS-DR)

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: VIP setting at Director(LVS-DR)
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 4 Feb 2005 15:58:26 +0900
On Wed, Feb 02, 2005 at 08:45:32AM +0000, Monty Ree wrote:
> 
> Hello, all.
> 
> I have one question about the VIP at LVS-DR.
> Some manuals say that VIP at the Director should be set like below.
> 
> 1)
> ifconfig eth0:0 192.168.10.10 netmask 255.255.255.255 broadcast 
> 192.168.10.10 up
> 
> But I set like below and works well.
> 2)
> ifconfig eth0:0 192.168.10.10 netmask 255.255.255.0 broadcast 
> 192.168.10.255 up
> 
> Surely, if RealServer, should be set like 1) because of arp problem, 
> But this is a LVS-DR Director and it needs not set like above.
> 
> I don't know why should like above(1) at Director too.
> I have operated some LVS-DRs and 1), 2) works well together.
> Which is right?

1) looks wrong, but probably works in practice as you will
likely get the effect of 2) which looks correct to me.

Now, interfaces on lo:0, that is another story, because
loopback interfaces cover _all_ off the addresses in
their netmask, where as all other types of interface that I know of,
and in particular, eth interfaces, only cover one address.

To clarify.

ifconfig eth0:0 192.168.10.10 netmask 255.255.255.0 broadcast 192.168.10.255 up
   -> Add 192.168.10.10 to eth0

ifconfig lo:0 192.168.10.10 netmask 255.255.255.0 broadcast 192.168.10.255 up
   -> Add 192.168.10.0 - 192.168.10.255 to lo

ifconfig lo:0 192.168.10.0 netmask 255.255.255.0 broadcast 192.168.10.255 up
   -> Same as above, add 192.168.10.0 - 192.168.10.255 to lo

ifconfig lo:0 192.168.10.10 netmask 255.255.255.255 broadcast 192.168.10.10 up
   -> Add 192.168.10.10 to lo


-- 
Horms

<Prev in Thread] Current Thread [Next in Thread>