LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS configuration problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS configuration problem
From: "Madhav" <msp@xxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 17:08:07 +0530
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, 2 real servers) are connected to the LAN.
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.

*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,
madhav



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