LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Problems with first time LVS use

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Problems with first time LVS use
From: Omar Al-Tabari <otabari@xxxxxxxxxx>
Date: Tue, 05 Jun 2007 09:44:47 +0300
Hi List,

I am new to LVS and as expected I am having a bit of problems with the 
setup.
I am trying to setup a simple one network LVS NAT, at first one Load 
balancer and two real servers running IIS 6, my setup consists of the 
following:
Load balancer: Fedora Core 6 with ipvsadm v1.24 and IP forwarding enabled.
Real Servers: 2x windows 2003 running IIS6 that can be pinged and access 
from the LB
The LB has two Ethernets (planning on getting it to work on two 
Ethernets on two different networks later) I am using only one with the 
following configuration:

eth1      Link encap:Ethernet  HWaddr 00:0C:29:2F:81:F7
          inet addr:172.16.5.126  Bcast:172.16.5.255  Mask:255.255.255.0
eth1:0    Link encap:Ethernet  HWaddr 00:0C:29:2F:81:F7
          inet addr:172.16.5.131  Bcast:172.16.5.255  Mask:255.255.255.0

I'm using eth1:0 and that IP is the default gateway on the two web servers.
the configuration with ipvsadm is:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.5.131:http wlc
  -> RS2:http                     Masq    1      0          0
  -> RS1:http                     Masq    1      0          0

where RS1 = 172.16.5.48, and RS2 = 172.16.5.215

when I try and access the VIP of the LB I get the following (using tcpdump):
16:39:24.754213 IP 172.16.5.17.28654 > 172.16.5.131.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>
16:39:24.754366 IP 172.16.5.17.28654 > 172.16.5.48.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>
16:39:24.758253 IP 172.16.5.48.http > 172.16.5.17.28654: S 
3834528569:3834528569(0) ack 3384466649 win 16384 <mss 1460,nop,nop,sackOK>
16:39:26.363340 IP 172.16.5.48.http > 172.16.5.17.28654: S 
3834528569:3834528569(0) ack 3384466649 win 16384 <mss 1460,nop,nop,sackOK>
16:39:26.676958 IP 172.16.5.17.28654 > 172.16.5.131.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>
16:39:26.677004 IP 172.16.5.17.28654 > 172.16.5.48.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>
16:39:31.249205 IP 172.16.5.48.http > 172.16.5.17.28654: S 
3834528569:3834528569(0) ack 3384466649 win 16384 <mss 1460,nop,nop,sackOK>
16:39:31.321221 IP 172.16.5.17.28654 > 172.16.5.131.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>
16:39:31.321289 IP 172.16.5.17.28654 > 172.16.5.48.http: S 
3384466648:3384466648(0) win 65535 <mss 1260,nop,nop,sackOK>

My IP being 172.16.5.17

Now My understanding is that traffic will go My IP > LB > RS in the 
forward path and RS > LB > MY IP in the reply path, but that is not 
happening and I dont know why? Its a rather simple setup, most probably 
I am doing something wrong or haven't read enough, I hope you can help 
me out with this.

Thanks in advance.


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