LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Hopefully this is a simple one

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Hopefully this is a simple one
From: Charles N Wyble <charles@xxxxxxxxxxxxx>
Date: Sun, 23 Sep 2007 08:05:22 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Everyone,

        They say the fastest way to solve a problem is ask someone else for
help, and right after doing that you realize what the problem is.

I am in the process of setting up Linux Virtual Server. My setup is
fairly simple:

1) A virtual machine with two (virtual) network cards. One is host only
and one is bridged. This serves as a router and LVS machine. I am
running Ubuntu Feisty 7.07.

2) 2 virtual machines each with two (virtual) network cards. One host
only and one bridged. They are also running Ubuntu Feisty 7.07.

My goal is a 2 node NAT LVS setup to serve up HTTP pages.


Here is my script to create the pool:

#!/bin/bash

#Clear out current state
/etc/init.d/ipvsadm restart

ipvsadm -A -t 10.7.9.50:80
ipvsadm -a -t 10.7.9.50:80 -r 172.16.66.3:80 -m

As you can see I am trying to keep it simple and start out with a single
 node. That way I just have 2 systems to look at and always know where
to look at logs or run tcpdump etc.

And here is my ipvsadm output:

root@dev-vpn-router:~# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.7.9.50:www wlc
  -> dev-vpn01.wyble.home:www     Masq    1      0          0
root@dev-vpn-router:~#

My /etc/hosts files contain:

127.0.0.1       localhost
127.0.1.1       dev-vpn-router.localdomain      dev-vpn-router

172.16.66.3     dev-vpn01.wyble.home dev-vpn01
172.16.66.4     dev-vpn02.wyble.home dev-vpn02

The default gateway on dev-vpn01 is 10.7.9.50

root@dev-vpn01:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.7.9.0        *               255.255.255.0   U     0      0        0 eth0
172.16.66.0     *               255.255.255.0   U     0      0        0 eth1
default         10.7.9.50       0.0.0.0         UG    0      0        0 eth0
root@dev-vpn01:~#

I have full connectivity between the machines. I can ping, ssh both
ways. My test client can ping and ssh to all the involved ip addresses.

I have run tcpdump and see traffic getting passed around in what appears
to be the right direction.

Not sure where to go from here. I have been attempting to follow the
guide at:
http://www.ultramonkey.org/papers/lvs_tutorial/html/

Is there any other documentation or specific parts of the official LVS
documentation I should be examining?

Thank you all so much for your help with this problem. :)





- --
Charles N Wyble charles@xxxxxxxxxxxxx (818) 280 7059
http://www.thewybles.com/~charles

President and CEO of Known Element Enterprises and affiliated companies.
http://www.knownelement.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG9oCykQPZV56XDBMRAmIBAKCit3lDhSE6syMky02IpPgOYkAu3wCfc13T
/PjAILplmH6eYYGcJGTMaFc=
=R4x0
-----END PGP SIGNATURE-----


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