LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Connecting directly to realservers in a one-network LVS-

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Connecting directly to realservers in a one-network LVS-NAT
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Wed, 28 Nov 2007 14:19:25 -0800 (PST)
On Mon, 26 Nov 2007, Ben Hollingsworth wrote:

> What we ended up doing was dissolving the private subnet entirely.  Each
> RS thinks that it's on a /32 (1-host) subnet that contains only itself.
> We forced a routing rule that tells it the default route is to the
> virtual gateway on eth0, even though it doesn't have a subnet route for
> that gateway.  The RS routing table looks like this:
>
> # netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
> 172.22.64.222   0.0.0.0         255.255.255.255 UH        0 0          0 eth0
> 0.0.0.0         172.22.64.222   0.0.0.0         UG        0 0          0 eth0
>
> 172.22.64.222 is the virtual gateway on the director.

Still a bit mystified as to why I couldn't connect CIP<->RIP 
directly. Here's the way I did it in the HOWTO (after 
turning off all redirects on the director and flushing the 
routing tables etc).

realserver:/etc/lvs# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         director        0.0.0.0         UG        0 0          0 eth0

can you try that to see if you can connect CIP<->RIP

Thanks Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


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