LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Unable to forward packets

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Unable to forward packets
From: "Bill Omer" <bill.omer@xxxxxxxxx>
Date: Tue, 21 Feb 2006 13:27:18 -0800
Hello all

I'm attempting to get LVS installed and working and I'm having some
trouble.  I've been doing allot of reading and I'm not able to find a
solution to my problem on my own.  I was hoping that someone on here may be
able to shed some light on the subject and possibly point out what I'm doing
wrong.

I want to apologize in advanced for the length of this message.

I have ipvsadm installed and the ip_vs modules are loaded.  I'm using
rhel3as.

I'm doing the following

The server running lvs with eth0 being its rip and the vip is bound to
eth0:0.

logbash-2.03# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:13:21:B3:65:6A
          inet addr:10.26.66.97  Bcast:10.26.67.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10959 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3310081 (3.1 Mb)  TX bytes:1230650 (1.1 Mb)
          Interrupt:25

eth0:0    Link encap:Ethernet  HWaddr 00:13:21:B3:65:6A
          inet addr:10.26.66.101  Bcast:10.26.66.101  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:25



ipvsadm -A -t lvs-vip:23 -s wlc
ipvsadm -a -t lvs-vip:23 -r test-rs -g
echo 1 > /proc/sys/net/ipv4/ip_forward
route add -host 10.26.66.101 dev eth0:0


On the box I'm calling test-rs, I'm doing the following
ifconfig lo:0 lvs-vip netmask 255.255.255.255 broadcast lvs-vip up
echo 1 >/proc/sys/net/ipv4/ip_forward
route add -host lvs-vip dev lo:0

On the test-rs box, my ifconfig is this:

bomer.desktop$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:12:3F:66:98:A5
          inet addr:10.26.94.121  Bcast:10.26.95.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6815 (6.6 Kb)  TX bytes:6271 (6.1 Kb)
          Interrupt:11

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

lo:0      Link encap:Local Loopback
          inet addr:10.26.66.101  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15 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:900 (900.0 b)  TX bytes:0 (0.0 b)




To troubleshoot this, I'm running 'tcpdump -ln port 23'    on the lvs server
and the test-rs machine.  On the lvs server, I get the following when I try
to telnet to the vip from a 3 machine

21:14:04.278916 10.26.66.66.29427 > 10.26.66.101.telnet: S
2084871663:2084871663(0) win 5840 <mss 1460,sackOK,timestamp 101529036
0,nop,wscale 0> (DF) [tos 0x10]
21:14:04.278929 10.26.66.66.29427 > 10.26.66.101.telnet: S
2084871663:2084871663(0) win 5840 <mss 1460,sackOK,timestamp 101529036
0,nop,wscale 0> (DF) [tos 0x10]
21:14:04.278974 10.26.66.66.29427 > 10.26.66.101.telnet: S
2084871663:2084871663(0) win 5840 <mss 1460,sackOK,timestamp 101529036
0,nop,wscale 0> (DF) [tos 0x10]  [ttl 1]
21:14:04.278980 10.26.66.66.29427 > 10.26.66.101.telnet: S
2084871663:2084871663(0) win 5840 <mss 1460,sackOK,timestamp 101529036
0,nop,wscale 0> (DF) [tos 0x10]  [ttl 1]



I dont see anything at all from the test-rs machine's tcpdump output.  And
from the client, I get

nfs-101$ telnet lvs-vip
Trying 10.26.66.101...
telnet: connect to address 10.26.66.101: No route to host
telnet: Unable to connect to remote host: No route to host


Here is a list of the modules I inserted:
logbash-2.03# lsmod | grep ip
ip_vs_wlc               1284   1
ip_vs                  68192   2  [ip_vs_wlc]
ipip                    9540   0  (unused)
ipt_LOG                 4344   2  (autoclean)
iptable_filter          2444   1  (autoclean)
ipt_MARK                1400   1  (autoclean)
iptable_mangle          2776   1  (autoclean)
ip_tables              16544   4  [ipt_LOG iptable_filter ipt_MARK
iptable_mangle]




I'd be greatly appreciative to anyone who is able to offer any insight to my
problem.

Regards,
Bill Omer
bill.omer@xxxxxxxxx

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