LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

A little issue with a LVS_DR setup.. could someone shed some light on it

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: A little issue with a LVS_DR setup.. could someone shed some light on it, please?
From: David <dh@xxxxxxxxx>
Date: Wed, 18 Dec 2002 17:07:22 +0100
Hello.

I asked a few weeks ago how to setup an LVS and the responses were overwhelmingly friendly and helpful. For that I thank all of you. I tried to setup a LVS_DR by hand today and somehow I seem to have missed a few of the more subtle steps as it seems. Please look at the included configurations from both, the LVS Director and the backend.

My problem seems to be the following:
When I try ssh 172.16.100.160 ON the LVS director itself, I land on the LVS director. When I try ssh 172.16.100.160 from any Machine within 172.16.0.0/16 then it will time out after a while.

Maybe I should remove the default GW on the LVS director? I am not really sure what has been overlooked and I would be very grateful for some pointers toward the right answer. I did apply the hidden patch to the Kernel on the backends and the hidden is activated as well.

If you need further information, please let me know


NET SETUP

(one net, all hosts are in 172.16.0.0/16)
LVS real IP = 172.16.100.120
LVS virtual IP = 172.16.100.160

Backend1 real IP = 172.16.100.110
backend2 real IP = 172.16.100.111

backend and LVS are connected via a switch. To all machines within 172.16.0.0/16 the 172.16.1.1 is the default gw.




backend 1
(I made sure, that this uses lo:110)
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.100.160 0.0.0.0 255.255.255.255 UH 40 0 0 lo 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo

Interfaces for backend1
eth0      Link encap:Ethernet  HWaddr 00:04:75:CA:D0:10
inet addr:172.16.100.110 Bcast:172.16.255.255 Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1


lo:110    Link encap:Local Loopback
          inet addr:172.16.100.160  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1


LVS Director ipvsadm table:
(I am trying with ssh too, since telnet is not on all machines)
IP Virtual Server version 1.0.7 (size=1048576)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  lvs:ssh rr
  -> RS2:ssh                      Route   1      0          1
  -> RS1:ssh                      Route   1      0          0
TCP  lvs:telnet rr
  -> RS1:telnet                   Route   1      0          0
  -> RS2:telnet                   Route   1      0          0

LVS Director
(I did make sure that the route really uses dev eth0:110)
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.100.160 0.0.0.0 255.255.255.255 UH 40 0 0 eth0 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo 0.0.0.0 172.16.1.1 0.0.0.0 UG 40 0 0 eth0


Interfaces for LVS Director




eth0      Link encap:Ethernet  HWaddr 00:04:75:C5:8B:EE
inet addr:172.16.100.120 Bcast:172.16.255.255 Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1


eth0:110  Link encap:Ethernet  HWaddr 00:04:75:C5:8B:EE
inet addr:172.16.100.160 Bcast:172.16.100.160 Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1


lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1



- Face me and you shall surely perish.



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