Subject: ARP problem definded part 3
To: None <macbsd-general@NetBSD.ORG>
From: noud de brouwer <noud@knot.nl>
List: macbsd-general
Date: 06/16/1995 17:01:27
Renewed problem description.

I'm dialing in with MacPPP into a configured MacBSD systems.
Using GENERIC #31. It's a II with PMMU (no new roms) 5/148/20.
No AppleTalk plugged in.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gettytab *CHANGED*:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# SupraFAXModem (14400)
#
sfm57600:\
        :nx=sfm38400:sp#57600:to:60:hc#TRUE:im:"Knot Foundation 57600"
sfm38400:\
        :nx=sfm19200:sp#38400:to:60:hc#TRUE:im:"Knot Foundation 38400"
sfm19200:\
        :nx=sfm14400:sp#19200:to:60:hc#TRUE:im:"Knot Foundation 19200"
sfm14400:\
        :nx=sfm12000:sp#14400:to:60:hc#TRUE:im:"Knot Foundation 14400"
sfm12000:\
        :nx=sfm9600:sp#12000:to:60:hc#TRUE:im:"Knot Foundation 12000"
sfm9600:\
        :nx=sfm7200:sp#9600:to:60:hc#TRUE:im:"Knot Foundation 9600"
sfm7200:\
        :nx=sfm4800:sp#7200:to:60:hc#TRUE:im:"Knot Foundation 7200"
sfm4800:\
        :nx=sfm2400:sp#4800:to:60:hc#TRUE:im:"Knot Foundation 4800"
sfm2400:\
        :nx=sfm1200:sp#2400:to:60:hc#TRUE:im:"Knot Foundation 2400"
sfm1200:\
        :nx=sfm600:sp#1200:to:60:hc#TRUE:im:"Knot Foundation 1200"
sfm600:\
        :nx=sfm300:sp#600:to:60:hc#TRUE:im:"Knot Foundation 600"
sfm300:\
        :nx=sfm57600:sp#300:to:60:hc#TRUE:im:"Knot Foundation 300"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ttys:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tty00   "/usr/libexec/getty sfm57600"   unknown on secure rtscts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
resolv.conf:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
domain knot.nl
nameserver 193.78.85.7
nameserver 193.78.85.4
lookup file bind
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mygate:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sdns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
master.passwd *CHANGED*:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ppp:***:117:0::0:0:PPP client login:/tmp:/usr/sbin/pppd
dn:***:117:0::0:0:PPP client login:/usr/dn:/usr/sbin/pppd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
netstart:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh -
#
#       @(#)netstart    5.9 (Berkeley) 3/30/91
#       $Id: netstart,v 1.18 1994/06/30 08:17:11 cgd Exp $

# set these to "NO" to turn them off.  otherwise, they're used as flags
routed_flags=-q
rarpd_flags="-a"
bootparamd_flags=""
sendmail_flags="-bd -q30m"
timed_flags=

# set the following to "YES" to turn them on
rwhod=YES
nfs_server=NO
nfs_client=NO
name_server=NO
gated=YES
kerberos_server=NO
amd=NO

# miscellaneous other flags
# only used if the appropriate server is marked YES above
gated_flags=
amd_dir=/amd                    # AMD's mount directory
amd_master=/etc/amd/master      # AMD 'master' map

# /etc/myname contains my symbolic name
#
hostname=`cat /etc/myname`
hostname $hostname
if [ -f /etc/defaultdomain ]; then
        domainname `cat /etc/defaultdomain`
fi

#
# Comments stript out
#

(
    tmp="$IFS"
    IFS="$IFS."
    set -- `echo /etc/hostname*`
    IFS=$tmp
    unset tmp

    while [ $# -ge 2 ] ; do
        shift            # get rid of "hostname"
        (
            read af name mask bcaddr extras
            read dt dtaddr

            if [ ! -n "$name" ]; then
                echo "/etc/hostname.$1: invalid network configuration file"
                exit
            fi

            cmd="ifconfig $1 $af $name "
            if [ "${dt}" = "dest" ]; then cmd="$cmd $dtaddr"; fi
            if [ -n "$mask" ]; then cmd="$cmd netmask $mask"; fi
            if [ -n "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then
                cmd="$cmd broadcast $bcaddr";
            fi
            cmd="$cmd $extras"

            $cmd
        ) < /etc/hostname.$1
        shift
    done
)

# set the address for the loopback interface
ifconfig lo0 inet localhost

# use loopback, not the wire
route add $hostname localhost

# /etc/mygate, if it exists, contains the name of my gateway host
# that name must be in /etc/hosts.
if [ -f /etc/mygate ]; then
        route add default `cat /etc/mygate`
fi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ppp *CHANGED*:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--  1 ppp   dialer    13 Jun 16 12:18 dialinhost
-r-xr-xr-x  1 root  wheel    381 Jun  7 15:47 ip-down
-r-xr-xr-x  1 root  wheel    340 Jun 16 05:14 ip-up
-rw-r--r--  1 root  wheel    191 Jun 15 13:52 options
-r-xr-xr-x  1 ppp   dialer   349 Jun 15 13:53 ppp-down
-r-xr-xr-x  1 ppp   dialer   347 Jun 15 11:35 ppp-up
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options *CHANGED*:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modem crtscts proxyarp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ip-up:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
#ip-up
#$1 interface-name
#$2 tty-device
#$3 speed
#$4 local-IP-address
#$5 remote-IP-address

stty -f /dev/tty00 hupcl

echo -n $5 "in at : " >> /var/log/ppp
date >> /var/log/ppp

echo $5 > /etc/ppp/dialinhost
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ip-down:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
#ip-down
#$1 interface-name
#$2 tty-device
#$3 speed
#$4 local-IP-address
#$5 remote-IP-address

echo -n $5 "out at: " >> /var/log/ppp
date >> /var/log/ppp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myname (II):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
phone.knot.nl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hostname.ae0 (II):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
inet phone 255.255.255.0 193.78.85.255
NONE NONE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hostname.ppp0 (II) *CHANGED*:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
inet phone 255.255.255.0
NONE NONE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hosts (phone:=II):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# It is used only for "ifconfig" and other operations
# before the nameserver is started.
#
#
193.78.85.2     phone.knot.nl      phone
127.1           localhost
#
# Imaginary network.
193.78.85.7     dns.knot.nl    dns
193.78.85.3     sdns.knot.nl     sdns
193.78.85.4     pop.knot.nl      pop
193.78.85.5     renning.knot.nl  renning
193.78.85.6     noud.knot.nl     noud
193.78.85.8     hardware.knot.nl hardware
193.78.85.9     www.knot.nl      www
193.78.85.10    cult.knot.nl     cult
193.78.85.12    dn.knot.nl       dn
193.78.85.14    anja.knot.nl     anja
193.78.85.15    marcdel.knot.nl  marcdel
193.78.85.20    uitilia.knot.nl  uitilia

193.78.240.1    sun4nl.nl.net    sun4nl
193.78.240.65   annex01.nl.net   annex01
+++++++++++++++++++++++++++++++++++++++++
so that's the settings
&
here's the result
+++++++++++++++++++++++++++++++++++++++++
phone/II
+++++++++++++++++++++++++++++++++++++++++
phone# Jun 10 20:27:08 phone last message repeated 9 times
Jun 10 20:30:19 phone last message repeated 9 times
Jun 10 20:30:19 phone last message repeated 3 times
Jun 10 20:31:49 phone pppd[141]: pppd 2.1.1 started by ppp, uid 117
Jun 10 20:31:50 phone pppd[141]: Connect: ppp0 <--> /dev/tty00
Jun 10 20:31:56 phone pppd[141]: local  IP address 193.78.85.2
Jun 10 20:31:56 phone pppd[141]: remote IP address 193.78.85.6
phone# arp -a
sdns.knot.nl (193.78.85.3) at 0:0:94:60:70:e6
renning.knot.nl (193.78.85.5) at 8:0:7:fc:cf:e8
noud.knot.nl (193.78.85.6) at 0:0:94:60:71:40 permanent published (proxy only)
? (193.78.85.255) at (incomplete)
phone# netstat -r
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
default          sdns               UGS         0        0  ae0
localhost        localhost          UH          1        0  lo0
193.78.85        link#1             UC          0        0  ae0
phone            localhost          UGHS        1       24  lo0
sdns                                UHL         1        0  ae0
pop                                 UHL         0        1  ae0
renning                             UHL         2      556  ae0
noud             phone              UH          0        0  ppp0
noud             ae0:0.0.94         UHLS2       0        0  ae0
dns                                 UHL         0        1  ae0
193.78.85.255    link#1             UHL         2       29  ae0

XNS:
Destination      Gateway            Flags     Refs     Use  Interface
phone# stty -f /dev/tty00
ppp disc; speed 57600 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel ignbrk -brkint ignpar
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb crtscts

*** I LEAVE THE SYSTEM AGAIN ***

phone# Jun 10 20:33:18 phone /netbsd: ppp0 output: ff03c02106720004
Jun 10 20:33:18 phone /netbsd: ppp0 output: ff03c02106720004
Jun 10 20:33:19 phone /netbsd: ppp0: garbage received: 0x2b (need 0xFF)
Jun 10 20:33:19 phone /netbsd: ppp0: garbage received: 0x2b (need 0xFF)
Jun 10 20:33:21 phone pppd[141]: Connection terminated.
phone# arp -a
sdns.knot.nl (193.78.85.3) at 0:0:94:60:70:e6
pop.knot.nl (193.78.85.4) at 0:80:19:17:db:42
renning.knot.nl (193.78.85.5) at 8:0:7:fc:cf:e8
dns.knot.nl (193.78.85.7) at 0:0:94:7:ee:b2
? (193.78.85.255) at (incomplete)
phone# netstat -r
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
default          sdns               UGS         0        0  ae0
localhost        localhost          UH          1        0  lo0
193.78.85        link#1             UC          0        0  ae0
phone            localhost          UGHS        1       24  lo0
sdns                                UHL         1        0  ae0
pop                                 UHL         0        8  ae0
renning                             UHL         2      606  ae0
dns                                 UHL         0        3  ae0
193.78.85.255    link#1             UHL         2       35  ae0

XNS:
Destination      Gateway            Flags     Refs     Use  Interface
phone# who
root     ttyp0   Jun 10 20:13   (renning)
phone# cat /var/log/ppp
193.78.85.6 in at : Sat Jun 10 20:31:58 PDT 1995
193.78.85.6 out at: Sat Jun 10 20:33:18 PDT 1995
phone# cat /etc/ppp/dialinhost
193.78.85.6
phone#

+++++++++++++++++++++++++++++++++++++++++
*TOTALY CHANGED*
+++++++++++++++++++++++++++++++++++++++++

Now i will dial into the same system but using a different
name, passwd & ip-nr: this is where my problem gets visible

+++++++++++++++++++++++++++++++++++++++++

phone# Jun 10 14:22:23 dns last message repeated 8 times
Jun 10 14:23:32 dns pppd[141]: pppd 2.1.1 started by dn, uid 117
Jun 10 14:23:32 dns pppd[141]: Connect: ppp0 <--> /dev/tty00
Jun 10 14:22:23 dns last message repeated 9 times
Jun 10 14:23:39 dns pppd[141]: local  IP address 193.78.85.7
Jun 10 14:23:39 dns pppd[141]: remote IP address 193.78.85.10
phone# arp -a
sdns.knot.nl (193.78.85.3) at 0:0:94:60:70:e6
renning.knot.nl (193.78.85.5) at 8:0:7:fc:cf:e8
www.knot.nl (193.78.85.9) at 0:80:19:3:33:54
? (193.78.85.255) at (incomplete)
phone# netstat -r
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
default          sdns               UGS         0        0  ae0
localhost        localhost          UH          1        0  lo0
193.78.85        link#1             UC          0        0  ae0
sdns                                UHL         1        0  ae0
pop                                 UHL         0        1  ae0
renning                             UHL         1      263  ae0
dn               dns                UH          0        0  ppp0
phone            localhost          UGHS        1       26  lo0
www                                 UHL         0        1  ae0
193.78.85.255    link#1             UHL         2       24  ae0

XNS:
Destination      Gateway            Flags     Refs     Use  Interface
phone# stty -f /dev/tty00
ppp disc; speed 57600 baud;
lflags: -icanon -isig -iexten -echo
iflags: -icrnl -ixon -ixany -imaxbel ignbrk -brkint ignpar
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb crtscts

*** I LEAVE THE SYSTEM AGAIN ***
*** if i did a:
***
*** arp -s dn 0:0:94:60:71:40 pub
***
*** then
***
*** dn.knot.nl (193.78.85.10) at 0:0:94:60:71:40 permanent published (proxy
only)
***
*** would appear and everything works but that's a by-pass
*** dn               dns                UH          0        0  ppp0
*** dn               <nothing>          UGHS        1       26  lo0
***                   ^^^^^^^ i expected ae0:0.0.94 here but it doesn't
***                           the problem is how to get ae0:0.0.94 in there
***                           i did it somehow fumbling around ;)'
***
*** both leaving or arp -s ing and leaving results in:

phone# arp -a
sdns.knot.nl (193.78.85.3) at 0:0:94:60:70:e6
pop.knot.nl (193.78.85.4) at 0:80:19:17:db:42
renning.knot.nl (193.78.85.5) at 8:0:7:fc:cf:e8
www.knot.nl (193.78.85.9) at 0:80:19:3:33:54
? (193.78.85.255) at (incomplete)
phone# netstat -r
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
default          sdns               UGS         0        0  ae0
localhost        localhost          UH          1        0  lo0
193.78.85        link#1             UC          0        0  ae0
sdns                                UHL         1        0  ae0
pop                                 UHL         0        9  ae0
renning                             UHL         1      299  ae0
dn               dns                UH          0        0  ppp0
phone            localhost          UGHS        1       30  lo0
www                                 UHL         0        1  ae0
193.78.85.255    link#1             UHL         2       25  ae0

XNS:
Destination      Gateway            Flags     Refs     Use  Interface
dns#
dns# who
dn       tty00   Jun 10 14:23
root     ttyp0   Jun 10 14:00   (renning)
dns#
dns# cat /var/log/ppp
193.78.85.6 out at: Sat Jun 10 14:28:05 PDT 1995
phone# cat /etc/ppp/dialinhost
dns#

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as far as i can see -on the moment- machine "noud" is complete but
"dn" does start ppp but no ip-up script. That is possibly because of the
arp table (???) that ain't configerd properly.
Can anybody shed some light on the configuring of the arp entry "noud" or
the misconfiguring of the arp entry "dn"?

Anyone has got some idee's? Is my next step a valid one?:
Fumble around for another 38 hours?

ThanX
noud


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KnoT Foundation                                     Noud de Brouwer
People's Internet Domain +31-13                       Kerkstraat 86
                                                 5051 LC  GOIRLE NB
                                                    the Netherlands
e-mail: noud@knot.nl                          Tel.:   +31-13-342761
http:   //www.knot.nl/                    Fax./ARA:   +31-13-346945
talk:   noud@renning.knot.nl                   PPP:   +31-13-345057
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~