LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

configuration problems

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: configuration problems
From: Stefan Knollmueller <stefan.knollmueller@xxxxxxxxxxxxxxx>
Date: Tue, 20 Nov 2001 14:10:04 +0100 (CET)
hello,

i am trying to set up a LVS using one dirctor and two real servers.
the real servers are webservers but when trying to connect to the virtual
address no website gets delivered.


my setup:
#               ________
#              |        |
#              | client |
#              |________|
#                  | CIP=eth0 192.168.2.x/24
#                  |
#                  |       __________
#                  |      |          |
#                  |------| director |
#                  |      |__________|
#                  |  VIP=eth0:0   192.168.2.50/24
#          this one is the address i want the realservers to respond to
#                  |
#                  |  DIP=eth0     192.168.2.46/24
#          this one is the address of the director
#                  |
#                  |
#         -------------------
#         |                 |
#         |                 |
#   ______________    ______________
#  |              |  |              |
#  | realserver1  |  | realserver2  |
#  |______________|  |______________|
#     RIP1=eth0         RIP2=eth0
#    192.168.2.41       192.168.2.42



my lvs config:
#----------lvs_dr.conf----------------------------------------
LVSCONF_FORMAT=1.1
LVS_TYPE=VS_DR
INITIAL_STATE=on
CLEAR_IPVS_TABLES=yes
#VIP line format - device[:alias] IP netmask broadcast
#To help avoid namespace collisions with other VIPs, I set alias=last
number of
#note: for VS-DR, VS-Tun, the IP is in a /32 network
VIP=eth0:0 192.168.2.50 255.255.255.0 192.168.2.50
#DIP line format - device[:alias] IP network netmask broadcast
DIP=eth0 192.168.2.46 192.168.2.0 255.255.255.0 192.168.2.255
#no DIRECTOR_GW for VS-DR or VS-Tun
#DIRECTOR_GW=
#SERVICE line format - proto port scheduler IP[,weight] [IP[,weight]]
#SERVICE=t telnet rr sneezy bashfull
#SERVICE=t ftp rr sneezy,1 bashfull,2
SERVICE=t http rr 192.168.2.41 192.168.2.42
SERVER_VIP_DEVICE=lo:0
SERVER_NET_DEVICE=eth0
#SERVER_GW - packets with src_addr=VIP, dst_addr=0/0 are sent to SERVER_GW
#to be forwarded to the outside world.
#For standard VS-DR,VS-Tun, this must _NOT_ be the director.
#For Julian's martian modification (see the HOWTO), it will be the
director.
#If you don't know about the martian modification, you aren't using it.
#The script will not neccesarily set up the SERVER_GW as the
real-servers's def
SERVER_GW=192.168.2.46
#----------end lvs_dr.conf------------------------------------

what is the error in this setup? i get it running and when watching
ipvsadm i can see that the director is sending the first request to the
first server, the next to the second, but i get no data to my client.
anyone knows what to do?


-- 



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