LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS configuration problem

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: LVS configuration problem
Cc: msp@xxxxxxxxxxxx
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Tue, 03 Apr 2001 08:00:39 -0400
Madhav wrote:
> 
> Hi Joe,
> 
> Following is my setup. I have three machines all with RH 6.1.I am trying a
> VS-NAT setup.
> All the three machines(one router, 
                             ^^^^^^

I assume this is the LVS director

2 real servers) are connected to the LAN.

you have one physical network

> That is why I am not giving any figure.
> The router has 2 ethernet cards. I do not have a HUB now. I tried this setup
> one year back(with HUB) and it worked well.


> But now I am back to square one as I was working in different environment.
> Now I am doing this as the test bed for my project.
> Will this setup works or do I specifically need to use a HUB for VS-NAT
> configuration.

the LVS doesn't care how the machines are connected as long as they can pass 
packets to each other. You can have a hub, switch or have the machines
directly connected.


> 
> *router-eth0:0- 172.16.30.76*,
> *router-eth0-  172.16.30.75*,
> *router-eth1-  10.1.10.9*,
> *real server1-eth0-10.1.10.10*,
> *real server2-eth0-10.1.10.11*
> What I remember is that I must create a virtual IP for the router.
> So I created eth0:0 with 172.16.30.76 for the router(eth0:172.16.30.75). The
> routes are
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 10.1.10.9         *               255.255.255.255 UH    0      0        0
> eth1
> 172.16.30.76    *               255.255.255.255 UH    0      0        0 eth0
> 172.16.0.0      *               255.255.0.0     U     0      0        0 eth0
> 10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> 
> Will the following commands be enough.
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/ipchains -A forward -j MASQ -s 10.1.10.9/24 -d 0.0.0.0
> $IPVSADM -A -t 172.16.30.76:80 -s wlc
> $IPVSADM -a -t 172.16.30.76:80 -R 10.1.10.10:80 -m
> $IPVSADM -a -t 172.16.30.76:80 -R 10.1.10.11:80 -m
> 
> I tried connecting to the VIP 172.16.30.76 of router without success. In the
> router the ipvsadm command shows the connection as inactive. I will read the
> docs. But in case you find any mistake in the set can you tell me?
> thanks in advance,

read about setting up the default gw for the real-servers

Joe

-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


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