Subject: PPP/Routed/Gated Question
To: None <netbsd-help@NetBSD.ORG>
From: Joseph R. Rach <nomad@UDel.Edu>
List: netbsd-help
Date: 04/01/1997 01:41:29
Hello,

    I've got a NetBSD-1.2-sparc system setup call my ISP over PPP.
    Everything is working, however, I've added a second machine to 
    my network and I can't get it to connect outside. It appears
    that the datagrams are getting routed out over the PPP line, but
    not making it back. I've checked routed, and its being called
    with -s (I tried -g as well). I'm using a kernel with option 
    GATEWAY set as well.

     Sparc is 192.1.1.3 and my other machine is 192.1.1.7. The basic
     PPP script I'm using is, nothing set in /etc/ppp/options:

     /usr/sbin/pppd \
     connect '/usr/sbin/chat -v -f /home/nomad/bin/udPPP' \
     /dev/ttya \
     38400 \
     -detach \
     debug \
     crtscts \
     mru 1500 \
     mtu 1500 \
     bsdcomp 15,15 \
     modem \
     defaultroute \
     netmask 255.255.255.0 \
     lock \
     noipdefault

     I removed proxyarp since it gave an error:
     pppd[855]: Cannot determine ethernet address for proxy ARP

     netstat -rn:

     Destination      Gateway            Flags     Refs     Use    Mtu 
     Interface
     default          128.175.13.37      UG          1     1566      -  ppp0
     127.0.0.1        127.0.0.1          UH          1        0      -  lo0
     128.175.13.37    128.175.98.38      UH          1        0      -  ppp0
     128.175.98.33    127.0.0.1          UH          0        0      -  lo0
     192.1.1          link#1             UC          0        0      -  le0
     192.1.1.3        127.0.0.1          UGHS        1       25      -  lo0
     192.1.1.7        0:a0:24:c0:f7:d9   UHL         0      126      -  le0
     192.1.1.255      link#1             UHL         1       25      -  le0

     tcpdump -i ppp0 -l for ping from sparc:
     01:20:12.518901 ppp-pts37.nss.udel.edu > 182.175.13.92: icmp: echo
     request
     01:20:12.619783 ppp-pts37.nss.udel.edu.1037 > louie.udel.edu.domain:
     1+ (44)
     01:20:12.813233 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1037:
     1* 1/0/0 (80)
     01:20:12.821468 ppp-pts37.nss.udel.edu.1038 > louie.udel.edu.domain:
     2+ (44)
     01:20:13.397019 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1038: 2
     NXDomain* 0/1/0 (130)
     01:20:13.522420 ppp-pts37.nss.udel.edu > 182.175.13.92: icmp: echo
     request
     01:20:14.457601 ppp-pts37.nss.udel.edu.1039 > louie.udel.edu.domain:
     3+ (42)
     01:20:14.516991 ppp-pts37.nss.udel.edu > 182.175.13.92: icmp: echo
     request
     ...

     tcpdump -i ppp0 -l for ping from PC:
     01:21:21.056525 ppp-pts37.nss.udel.edu.route > via.nss.udel.edu.route:
     rip-resp 2: ppp-pts32.nss.udel.edu(1)[|rip] [ttl 1]
     01:21:21.103257 abacus > copland.udel.edu: icmp: echo request
     01:21:21.273822 via.nss.udel.edu > ppp-pts37.nss.udel.edu: icmp:
     via.nss.udel.edu udp port route unreachable (DF)
     01:21:21.622633 ppp-pts37.nss.udel.edu.1043 > louie.udel.edu.domain:
     1+ (44)
     01:21:21.903587 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1043:
     1* 1/0/0 (80)
     01:21:21.911780 ppp-pts37.nss.udel.edu.1044 > louie.udel.edu.domain:
     2+ (44)
     01:21:22.090746 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1044:
     2* 1/0/0 (74)
     01:21:22.097974 ppp-pts37.nss.udel.edu.1045 > louie.udel.edu.domain:
     3+ (44)
     01:21:22.098326 abacus > copland.udel.edu: icmp: echo request
     01:21:22.277495 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1045:
     3* 1/0/0 (80)
     01:21:22.335099 ppp-pts37.nss.udel.edu.1046 > louie.udel.edu.domain:
     4+ (44)
     01:21:22.605276 louie.udel.edu.domain > ppp-pts37.nss.udel.edu.1046:
     4* 1/0/0 (74)
     01:21:23.098023 abacus > copland.udel.edu: icmp: echo request
     ...

     It appears as though routed is trying to communicate with the PPP 
     server to update its routing tables, but of course that host isn't
     running routed.

     So, I suppose that I need to tunnel these packets from the sparc
     somehow? I see the modem's lights blink send, but not recieve.

     I'm a newby with BSD, what are my options? Or more specifly, how 
     do I setup my Sparc to act as my gateway? Should I be using gated
     instead? If so, could someone post a sample configuration?

     Any help or suggestions is greatly appreciated.

                                    Thanks in advance,
                                    Joe Rach
-- 
"Life can be understood backwards, but must be lived forward."