LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Broadcast Address for VIP (lo:0)...

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Broadcast Address for VIP (lo:0)...
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 12 Aug 2004 09:11:34 +0900
On Wed, Aug 11, 2004 at 09:39:16AM -0400, Joseph Mack wrote:
> Sean Rolinson wrote:
> > 
> > Hello Group,
> > 
> > I've setup LVS/DR on RH 3.0 ES.  Everything with regards to LVS is
> > working fine and has been for sometime.  However, we ran in to some
> > problems today deploying a package called Spread
> > (http://www.spread.org).
> 
> can you turn on line wrap? Your paragraphs are one line and go off the
> edge of the screeen.
> 
> > Is it ok to not to have a broadcast entry in for lo:0?  Does LVS
> > need to have a broadcast set for it to work properly?
> 
> The /32 broadcast for the VIP depends on the kernel version and the
> forwarding method and is explained in the HOWTO at least for 2.0 and
> 2.2 kernels. Why you need a /32 netmask for the VIP under some
> circumstances is beyond me although Horms appears to understand it. 
> 
> Clearly if your LVS works, then it's OK.

My ears are burning.

In general you should use a /32 on the lo:0 netmask. 
If it is working for you, problem solved.

The real story is that the netmask works a little differently
on lo to other interfaces. On lo the interface will answer to
_all_ addresses covered by the netmask. This is how 127.0.0.1/8 on
lo ends up answering 127.0.0.0-127.255.255.255. So if
you add 172.16.4.222/16 to eth0 then it will answer 172.16.4.222 and
only 172.16.4.222. But if you add the same thing to lo then it 
will answer 172.16.0.0-172.16.255.255. So you need to use
172.16.4.222/32 instead.

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