LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS doesn't work

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: LVS doesn't work
From: Severin Olloz <S.Olloz@xxxxxxx>
Date: Wed, 27 Mar 2002 16:28:34 +0100
Hello together...

I want to set up a linux-virtual-server system, but it dosn't work at all.

My Linux (Debian) kernel (2.2.19) ist patched with the lvs-patch and works. I 
download the ipvsadm programm, compile it and it runs.

I decide to use the virtual server via direct routing and I do configure my 
servers like this:

DIRECTOR-SERVER:

The interface-cards:

ifconfig eth0 192.168.120.132 netmask 255.255.255.0 broadcast 192.168.120.255 
up -> this is the real ip address of the director-server
ifconfig eth0:0 192.168.120.130 netmask 255.255.255.255 broadcast 
192.168.120.130 up -> this is the virtual ip of the director server
echo 1 > /proc/sys/net/ipv4/ip_forward -> ip forwarding is enabled

A "netstat -rn" gives me this output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.120.130 0.0.0.0         255.255.255.255 UH        0 0          0 eth0
192.168.120.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         192.168.120.254 0.0.0.0         UG        0 0          0 eth0

The virtual-server:

ipvsadm -A -t 192.168.120.130:23 -s wlc
ipvsadm -a -t 192.168.120.130:23 -r 192.168.120.131 -g

When I run the ipvsadm-command gives me this output:

IP Virtual Server version 1.0.8 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port             Forward Weight ActiveConn InActConn
TCP  imstore.comre.itris.ch:telnet wlc
  -> node1.comre.itris.ch:telnet      Route   1      0          0

I think it looks good!


REAL-SERVER:

ifconfig eth0 192.168.120.131 netmask 255.255.255.0 broadcast 192.168.120.255 
-> this is the real ip address of the real-server
echo 1 > /proc/sys/net/ipv4/ip_forward -> ip forwarding is enabled
echo 1 > /proc/sys/net/ipv4/conf/all/hidden -> all are hidden
echo 1 > /proc/sys/net/ipv4/conf/lo/hidden -> lo is hidden
ifconfig lo:0 192.168.120.130 netmask 255.255.255.255 broadcast 
192.168.120.130 up -> lo device is set up

The command netstat -rn shows me this output:

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.120.130 0.0.0.0         255.255.255.255 UH        0 0          0 lo
192.168.120.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         192.168.120.254 0.0.0.0         UG        0 0          0 eth0

So I try to telnet to the ip virtual ip 192.168.120.130, but there is no 
response!

What do I wrong?

Thank you ver much for your help.

--
Gruss: Severin Olloz


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