LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS DR setup unable to connect with a windows 2003 webserver, but works

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, mark@xxxxxxxxxxx
Subject: LVS DR setup unable to connect with a windows 2003 webserver, but works fine with linux machine
From: Mark van den Bosch <mark@xxxxxxxxxxx>
Date: Thu, 08 Mar 2007 14:32:02 +0100
I've to setup a lvs dr setup with 2 windows 2003 webservers (web edition).
It's works fine with a NAT setup, but that isn't what I want.

Now I've added a win2k3 webserver and a linux webserver (for testing). LVS only connects with the linux servers and returns a webpage (so this one is working fine), but it never connects with the windows server.

This is how I configured the windows server:
- I added a local loopback adapter
- Configured it with the vip address (192.168.0.7) and a mask of 255.255.255.255 (through regedit)
- The metric: 254
- Firewall off
- ICS service stopped
- Internal network address configured with ip 192.168.0.8

The loopback is only 10Mbit (don't know if this is right?) and only reciveice packets and is not sending.

My LVS setup:

-------------------------
|                        |
| LDIRECTOR              |-------------------------------------------
| VIP: 192.168.0.7       |                |                        |
| RIP: 192.168.0.5       |                |                        |
-------------------------                 |                        |
| ----------------------- ----------------------- | | win2k3 | | Linux Debian | | | VIP: 192.168.0.7 | | VIP: 192.168.0.7 | | | RIP: 192.168.0.8 | | RIP: 192.168.0.3 | ----------------- ----------------------- ----------------------- | Backup | | |
----------------

Here is my ouput of ipvsadm -L -n:

IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActCon
TCP  192.168.0.7:80 rr
 -> 192.168.0.3:80               Route   1      0          0
 -> 192.168.0.8:80               Route   0      0          0

It's strange that the weight on the for the linux webserver is 1 and the windows is 0

My routing table on the windows machine:


IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10004 ...00 15 17 0f 1c 85 ...... Intel(R) PRO/1000 EB Network Connection with
I/O Acceleration #2
0x30002 ...02 00 4c 4f 4f 50 ...... Microsoft Loopback Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
       127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
     192.168.0.0    255.255.255.0      192.168.0.8      192.168.0.8     10
     192.168.0.7  255.255.255.255        127.0.0.1        127.0.0.1    254
     192.168.0.8  255.255.255.255        127.0.0.1        127.0.0.1     10
   192.168.0.255  255.255.255.255      192.168.0.7      192.168.0.7    254
   192.168.0.255  255.255.255.255      192.168.0.8      192.168.0.8     10
       224.0.0.0        240.0.0.0      192.168.0.7      192.168.0.7    254
       224.0.0.0        240.0.0.0      192.168.0.8      192.168.0.8     10
 255.255.255.255  255.255.255.255      192.168.0.7      192.168.0.7      1
 255.255.255.255  255.255.255.255      192.168.0.8      192.168.0.8      1
===========================================================================
Persistent Routes:
 None

And my ipconfig on the windows machine:

Ethernet adapter local:

  Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 EB Network Connection w
ith I/O Acceleration #2
  Physical Address. . . . . . . . . : 00-15-17-0F-1C-85
  DHCP Enabled. . . . . . . . . . . : No
  IP Address. . . . . . . . . . . . : 192.168.0.8
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . :
  DNS Servers . . . . . . . . . . . : 192.168.0.1

Ethernet adapter loopback:

  Connection-specific DNS Suffix  . :
  Description . . . . . . . . . . . : Microsoft Loopback Adapter
  Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
  DHCP Enabled. . . . . . . . . . . : No
  IP Address. . . . . . . . . . . . : 192.168.0.7
  Subnet Mask . . . . . . . . . . . : 255.255.255.255
  Default Gateway . . . . . . . . . :


I've googled around and read the mini-HOWTO about adding a windows webserver, but this reference only to NT en win2k. I also read this PDF file "http://www.loadbalancer.org/pdffiles/loadbalancersetup.pdf";, but also didn't help.

The ldirector seems to work fine, but I've know idea what's wrong with the win2k3 machine.

Greetz,
Mark van den Bosch





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