[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
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:


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

ipvsadm -A -t
ipvsadm -a -t -r -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 wlc
  -> dev-vpn01.wyble.home:www     Masq    1      0          0

My /etc/hosts files contain:       localhost       dev-vpn-router.localdomain      dev-vpn-router     dev-vpn01.wyble.home dev-vpn01     dev-vpn02.wyble.home dev-vpn02

The default gateway on dev-vpn01 is

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

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:

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

President and CEO of Known Element Enterprises and affiliated companies.
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


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