LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: LVS Tunneling

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: LVS Tunneling
From: "Upblogger.com" <contact@xxxxxxxxxxxxx>
Date: Fri, 18 May 2007 12:12:09 +0200
Hello Joe,

I configured the servers following the mini-HOWTO.

Linux Director:

IP: 91.121.30.157
VIP: 87.98.225.39

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:144518 errors:0 dropped:0 overruns:0 frame:41
          TX packets:132479 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16757338 (15.9 Mb)  TX bytes:20194229 (19.2 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:242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16839 (16.4 Kb)  TX bytes:16839 (16.4 Kb)

IPVS Configuration:

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 wlc
  -> ks35593.kimsufi.com:http     Route   1      0          0
  -> ns24396.ovh.net:http         Route   1      0          0

netstat -rn output:

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

When connecting to http://87.98.225.39 and running tcpdump -i any port
80 -p -n -t I see it is receiving connections.

IP 87.223.248.211.3243 > 87.98.225.39.80: S 519437827:519437827(0) win 65535
<mss 1460,nop,nop,sackOK>

ipvsadm detects that connection too:

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 wlc
  -> ks35593.kimsufi.com:http     Route   1      0          1
  -> ns24396.ovh.net:http         Route   1      0          0

Real Server 1:

eth0      Link encap:Ethernet  HWaddr 00:11:5B:49:00:18
          inet addr:213.186.39.157  Bcast:213.186.39.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1431211 errors:0 dropped:0 overruns:0 frame:1
          TX packets:1117361 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:140880870 (134.3 Mb)  TX bytes:138983034 (132.5 Mb)
          Interrupt:23 Base address:0xe000

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:95907 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95907 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10783659 (10.2 Mb)  TX bytes:10783659 (10.2 Mb)

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:62 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:3580 (3.4 Kb)  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
213.186.39.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         213.186.39.254  0.0.0.0         UG        0 0          0
eth0

tcpdump -i any port 80 -p -n -t returns nothing

Real Server 2:

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:7549 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:703711 (687.2 Kb)  TX bytes:2135551 (2.0 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:382 errors:0 dropped:0 overruns:0 frame:0
          TX packets:382 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:45355 (44.2 Kb)  TX bytes:45355 (44.2 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

tcpdump -i any port 80 -p -n -t returns nothing

Servers can ping each other.

Connecting from a client I get:

telnet 87.98.225.39 80
Trying 87.98.225.39...
telnet: Unable to connect to remote host: No route to host

I don't know where my error is, don't know where else to look.

Any ideas?

Thanks,

Antoni



On Thu, 17 May 2007, Upblogger.com wrote:

> Hello Joe,
>
> Yes I did, my problem is 7.6. The client says "connection refused".

there's no demon listening on the port on the machine that's
receiving the connection request.

> when using DR, tunneling replies "connection timeout".

the packets aren't being returned.

at this stage I suggest you setup using the scripts exactly
as is in the mini-HOWTO.

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


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