LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS - DR Connection refused

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS - DR Connection refused
From: "Upblogger.com" <contact@xxxxxxxxxxxxx>
Date: Fri, 18 May 2007 13:06:35 +0200
Hello,

I reconfigured my servers from scratch. Now I'm getting "Connection refused"
from the Linux Director when doing a telnet to the VIP and "No route to
host" when doing a telnet from the client. Running tcpdump -i any port 80 on
the Director shows incoming connections:

13:03:01.069383 IP 211.248.223.87.dynamic.jazztel.es.4490 >
87-98-225-39.ovh.net.http: S 344934619:344934619(0) win 65535 <mss
1460,nop,nop,sackOK>

Running tcpdump -i any port 80 on the Real Server 1 shows no connections are
being received.

So I guess there is some type of problem with the director routing the
connection to the Real Sever.

Below is my actual configuration on both servers.

I have no idea where might the error be, so any tip would be greatly
appreciated.

Thank you,

Antoni

Linux Director

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  87-98-225-39.ovh.net:http rr
  -> ns24396.ovh.net:http         Route   1      0          2
____________________________________________________________________________
__________

eth0      Link encap:Ethernet  HWaddr 00:1A:92:16:1C:F2
          inet addr:91.121.30.157  Bcast:91.121.30.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:253841 errors:0 dropped:0 overruns:0 frame:93
          TX packets:213580 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:38797273 (36.9 Mb)  TX bytes:29028274 (27.6 Mb)
          Interrupt:23

eth0:80   Link encap:Ethernet  HWaddr 00:1A:92:16:1C:F2
          inet addr:87.98.225.39  Bcast:87.98.225.39  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:23

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:342 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25202 (24.6 Kb)  TX bytes:25202 (24.6 Kb)

_________________________________________

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
87.98.225.39    0.0.0.0         255.255.255.255 UH        0 0          0
eth0
91.121.30.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         91.121.30.254   0.0.0.0         UG        0 0          0
eth0

_________________________________________

Ping from Linux Director to VIP:

ping -c 1 87.98.225.39
PING 87.98.225.39 (87.98.225.39) 56(84) bytes of data.
64 bytes from 87.98.225.39: icmp_seq=1 ttl=64 time=0.030 ms

--- 87.98.225.39 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.030/0.030/0.030/0.000 ms

Ping from Linux Director to Real Server 1:

ping -c 1 91.121.20.31
PING 91.121.20.31 (91.121.20.31) 56(84) bytes of data.
64 bytes from 91.121.20.31: icmp_seq=1 ttl=61 time=0.283 ms

--- 91.121.20.31 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.283/0.283/0.283/0.000 ms

_________________________________________

Telnet VIP from Linux Director

telnet 87.98.225.39 80
Trying 87.98.225.39...
telnet: connect to address 87.98.225.39: Connection refused




Real Server 1
____________________________________________________________________________
__________

eth0      Link encap:Ethernet  HWaddr 00:16:76:B1:22:0D
          inet addr:91.121.20.31  Bcast:91.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:68144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:189738 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7129187 (6.7 Mb)  TX bytes:22282893 (21.2 Mb)
          Base address:0x3020 Memory:90b00000-90b20000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3736 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:446830 (436.3 Kb)  TX bytes:446830 (436.3 Kb)

lo:80     Link encap:Local Loopback
          inet addr:87.98.225.39  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

_________________________________________

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
87.98.225.39    0.0.0.0         255.255.255.255 UH        0 0          0 lo
91.121.20.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         91.121.20.254   0.0.0.0         UG        0 0          0
eth0

_________________________________________

Ping from Real Server 1 to VIP:

ping -c 1 87.98.225.39
PING 87.98.225.39 (87.98.225.39) 56(84) bytes of data.
64 bytes from 87.98.225.39: icmp_seq=1 ttl=64 time=0.020 ms

--- 87.98.225.39 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.020/0.020/0.020/0.000 ms

Ping from Real Server 1 to DIP:

ping -c 1 91.121.30.157
PING 91.121.30.157 (91.121.30.157) 56(84) bytes of data.
64 bytes from 91.121.30.157: icmp_seq=1 ttl=61 time=0.471 ms

--- 91.121.30.157 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.471/0.471/0.471/0.000 ms

_________________________________________

Successful connection from Real Server 1 to telnet 87.98.225.39 80

telnet 87.98.225.39 80
Trying 87.98.225.39...
Connected to 87.98.225.39.
Escape character is '^]'.

Successful connection from Real Server 1 to telnet 91.121.20.31 80

telnet 87.98.225.39 80
Trying 87.98.225.39...
Connected to 87.98.225.39.
Escape character is '^]'.


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