LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: LVS-DR with kernel 2.6 realserver

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: LVS-DR with kernel 2.6 realserver
From: "Francois JEANMOUGIN" <Francois.JEANMOUGIN@xxxxxxxxxxxxxxxxx>
Date: Tue, 16 Mar 2004 10:56:12 +0100

Ric Searle:
> Sent: Tuesday, March 16, 2004 10:35 AM
> To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Subject: LVS-DR with kernel 2.6 realserver
> 
> Hi,
> 
> I have a simple LVS setup, where my directors and realservers are all
> running Slackware 9.1 with kernel 2.6.4.
> 
> I have assigned the virtual IP to the realservers' lo:0 interface, and
> I have set the arp_ignore flag on this interface:
> 
>      lo:0      Link encap:Local Loopback
>                inet addr:82.115.225.254  Mask:255.255.255.255
>                UP LOOPBACK RUNNING  MTU:16436  Metric:1
> 
> I need to add a static route, so that the realservers answer requests
> to the VIP locally.  Normally i would use:
> 
>      route add -host 82.115.225.254 dev lo:0
> 
> But I get:
> 
>      SIOCADDRT: Invalid argument
> 
> (if I replace lo:0 with lo, it works fine)
> 
> Any help would be appreciated!

You just don't need this route. The IP stack will route the packet for you. In 
fact, with a 2.4 kernel, if I add the route, it does NOT work. So, forget the 
route.

François.

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