[lvs-users] Trouble getting first LVS setup working

Chris St. Pierre stpierre at NebrWesleyan.edu
Mon Mar 23 13:50:17 GMT 2009

On Sat, 21 Mar 2009, Graeme Fowler wrote:

> What you'll need to do is as follows:
> # /sbin/ip address add dev eth0
> # /sbin/ipvsadm -A -t -s rr
> # /sbin/ipvsadm -a -t -r -w 100 -m
> # /sbin/ipvsadm -a -t -r -w 100 -m
> That then gets you a very basic virtual server on which
> has realservers on port 80/tcp on addresses and, using
> the "masquerade" method (LVS-NAT). The prerequisite for this is that the
> realservers have a default gateway address pointing to the director, ie.
> Once you have this set up, you can try to access the VIP from a client
> which is *not on the same LAN as the VIP or the realservers*. This is a
> key point - the return traffic MUST go back via the director in LVS-NAT
> or the SYN/AYN-ACK/ACK handshake will fail.
> Please try this and let us know how you get on.

Okay, I did that, and the result is -- improved?  I think?

I can see the HTTP request in the logs of one of the real servers.  So
the request gets that far.  But the response apparently never reaches
the client; curl just sits waiting until it finally times out.  I
_was_ testing from a different subnet.  I can ping the client from the
real servers, so at least some of the networking magic appears to be
working fine.

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University

More information about the lvs-users mailing list