Oh Kings of linux-net, live forever...

From: Robert Tagliarini (bobtag@cftnet.com)
Date: Wed Mar 01 2000 - 07:32:37 EST


...and please help this ignorant wretch get forwarding to work on his system.
Every indication I have says forwarding should be working but it isn't and I'd
really appreciate some hints on how to debug my setup.
TIA
 ---------- Forwarded Message ----------
Subject: ip_forward is 1 but forward does not work
Date: Tue, 29 Feb 2000 07:02:40 -0500
From: Robert Tagliarini <bobtag@cftnet.com>

Hello,
Please help me get ether/ppp forwarding to work on my setup. I have three
systems in my office running different versions of linux. My main workstation
is a compaq deskpro running redhat 6.1 (kernel version 2.2.12-20). It is
connected to an embedded target which is running uClinux via ppp on ttyS0. The
third system is an aptiva running redhat 5.2 (kernel version 2.0.36). The
compaq and the aptiva are connected to our company lan. I'm trying to make the
uClinux system visible to others on the company lan by having the compaq proxy
arp for it and forward packets to/from it.

 ----ethernet--------------------------....
            | |
        aptiva compaq
        10.44.11.8 10.44.13.50
                                      10.44.11.6------ppp-----uClinux
                                                                    10.44.11.7

/proc/sys/net/ipv4/ip_forward is a 1 on the compaq and
/etc/sysconfig/network has
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=tmrst
GATEWAY=
IPX="yes"
IPXINTERNALNETNUM="0"
IPXINTERNALNODENUM="0"
IPXAUTOPRIMARY="on"
IPXAUTOFRAME="on"
GATEWAYDEV=

 # arp -n
Address HWtype HWaddress Flags Mask Iface
10.44.1.1 ether 00:D0:BC:F0:87:58 C eth0
10.44.11.7 * * MP eth0
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.44.11.7 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.44.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 10.44.1.1 0.0.0.0 UG 0 0 0 eth0

I can telnet from the aptiva to the compaq (using either of the compaq's ip
addresses) and from there to the uClinux system. The proxy arp seems to be
working because a ping from the aptiva to the uClinux system gets an entry for
10.44.11.7 placed in the aptiva's arp cache and it has the compaq's ethernet
address in it. Monitoring the serial link to the uClinux system shows me that
the ping is not being forwarded to the uClinux system.

One other possible clue (I've been thinking it's just a buggy tcpdump) is
tcpdump's odd behaviour on the compaq. When I run tcpdump on the compaq set to
display everything to/from the aptiva, it displays target ethernet addresses
of 0:0:0:0:0:1 when the aptiva pings 10.44.11.7, 10.44.13.50, or any other
destination.
e.g.
tcpdump -n -i eth0 -e ether host 00:40:05:3a:66:6e
User level filter, protocol ALL, datagram packet socket
tcpdump: listening on eth0
07:41:11.794391 B 0:40:5:3a:66:6e Broadcast arp 60: arp who-has 10.44.11.7 tell10.44.11.8
07:41:12.199692 < 0:40:5:3a:66:6e 0:0:0:0:0:1 ip 98: 10.44.11.8 > 10.44.11.7: ic
mp: echo request

Do I need to do something with chains to get this to work?

What can I look at on the compaq to determine why it is not forwarding?

Thanks,
Bob Tagliarini
-------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:26 EST