Subject: SLIP server erratically fails on dialup.
To: 'netbsd-help' <netbsd-help@NetBSD.ORG>
From: John A. Maier <root@news.datastorm.com>
List: netbsd-users
Date: 10/17/1995 16:03:09
------ =_NextPart_000_01BA9CAA.0FA73660
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have a i386 NetBSD box acting as a SLIP server.  When I get a =
connection, it's nothing but fast and reliable.  Here are some of the =
stats when no one is on the line.

>arp -a
datastorm.com (205.138.190.254) at 0:0:a2:a:1f:1e
datastorm.com (205.138.190.255) at (incomplete)

>netstat -i
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  =
Coll
ed2   1500  <Link>0.0.c0.6e.82.ba          24539     0     1168     0    =
 7
ed2   1500  205.138.190 rndslip0           24539     0     1168     0    =
 7
lo0   32768 <Link>                            34     0       34     0    =
 0
lo0   32768 127         LOCALHOST             34     0       34     0    =
 0
sl0*  1006  <Link>                            96     0       57     0    =
 0
sl0*  1006  205.138.190 rndslip0              96     0       57     0    =
 0
ppp0* 1500  <Link>                             0     0        0     0    =
 0

>ifconfig -a
ed2: =
flags=3D9863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK0,MULTICAST>
        inet 205.138.190.38 netmask 0xffffff00 broadcast 205.138.190.255
lo0: flags=3D8009<UP,LOOPBACK,MULTICAST>
        inet 127.0.0.1 netmask 0xff000000
sl0: flags=3Dd030<POINTOPOINT,NOTRAILERS,LINK0,LINK2,MULTICAST>
        inet 205.138.190.38 --> 205.138.190.39 netmask 0xffffff00
ppp0: flags=3D10<POINTOPOINT>

>route get rndslip1
   route to: rndslip1
destination: datastorm.com
       mask: 255.255.255.0
  interface: ed2
      flags: <UP,DONE,CLONING>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     =
expire
       0         0         0         0         0         0         0     =
-4800
*************************************************************************=
******

When I get a reliable connection, I get this:

>arp -a
rndslip1.datastorm.com (205.138.190.39) at 0:0:c0:6e:82:ba permanent =
published
datastorm.com (205.138.190.254) at 0:0:a2:a:1f:1e
datastorm.com (205.138.190.255) at (incomplete)

>netstat -i
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  =
Coll
ed2   1500  <Link>0.0.c0.6e.82.ba          23875     0     1119     0    =
 7
ed2   1500  205.138.190 rndslip0           23875     0     1119     0    =
 7
lo0   32768 <Link>                            34     0       34     0    =
 0
lo0   32768 127         LOCALHOST             34     0       34     0    =
 0
sl0   1006  <Link>                            96     0       57     0    =
 0
sl0   1006  205.138.190 rndslip0              96     0       57     0    =
 0
ppp0* 1500  <Link>                             0     0        0     0    =
 0

>ifconfig -a
ed2: =
flags=3D9863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK0,MULTICAST>
        inet 205.138.190.38 netmask 0xffffff00 broadcast 205.138.190.255
lo0: flags=3D8009<UP,LOOPBACK,MULTICAST>
        inet 127.0.0.1 netmask 0xff000000
sl0: flags=3Dd031<UP,POINTOPOINT,NOTRAILERS,LINK0,LINK2,MULTICAST>
        inet 205.138.190.38 --> 205.138.190.39 netmask 0xffffff00
ppp0: flags=3D10<POINTOPOINT>

>route get rndslip1
   route to: rndslip1
destination: rndslip1
  interface: sl0
      flags: <UP,HOST,DONE>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     =
expire
       0         0         0         0         0         0         0     =
    0
*************************************************************************=
******

About every 5-10 connection fails to set up the routing information =
correctly.  A                   route get rndslip1 give me this on a =
failure:

>route get rndslip1
   route to: rndslip1
destination: rndslip1
  interface: ed2
      flags: <UP,HOST,DONE,LLINFO>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     =
expire
       0         0         0         0         0         0         0     =
   -1
*************************************************************************=
******

If I then try to ping the client from the host, it fails with a no route =
to host error message. The route then looks like this:
>route get rndslip1
   route to: rndslip1
destination: rndslip1
  interface: ed2
      flags: <UP,HOST,REJECT,DONE,LLINFO>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     =
expire
       0         0         0         0         0         0         0     =
    0
*************************************************************************=
******

I can disconnect and retry and might or might not get connected.

So, what do my slip.login and slip.logout files look like?

rndslip0.datastorm.com:/root>cat /etc/sliphome/slip.logout
#
#       @(#)slip.logout  5.1 (jam) 03/15/95

#
# generic logout file for a slip line.  sliplogin invokes this with
# the parameters:
#      1        2         3        4          5         6     7-n
#   slipunit ttyspeed loginname local-addr remote-addr mask opt-args
#
/sbin/ifconfig $7$1 down
/sbin/route delete $5 $4
arp -d $5
exit
rndslip0.datastorm.com:/root>cat /etc/sliphome/slip.login
#!/bin/sh -
#
#       @(#)slip.login  5.1 (jam) 03/15/95
#
# generic login file for a slip line.  sliplogin invokes this with
# the parameters:
#      1        2         3        4          5         6     7-n
#   slipunit ttyspeed loginname local-addr remote-addr mask opt-args
#

echo "slattach -h -s "$2" /dev/tty03" > /dev/console
slattach -h -s $2 /dev/tty03 /dev/console

echo "arp -s "$5" 00:00:c0:6e:82:ba pub" > /dev/console
arp -s "$5" 00:00:c0:6e:82:ba pub > /dev/console

echo "/sbin/ifconfig sl"$1" inet "$4" "$5" netmask "$6" -trailers" > =
/dev/consol
e
/sbin/ifconfig sl$1 inet $4 $5 netmask $6 -trailers > /dev/console

echo "/sbin/route add "$5" "$4 > /dev/console
/sbin/route add $5 $4 > /dev/console

exit
#End of Script

rndslip0.datastorm.com:/root>cat /etc/sliphome/slip.logout
#
#       @(#)slip.logout  5.1 (jam) 03/15/95

#
# generic logout file for a slip line.  sliplogin invokes this with
# the parameters:
#      1        2         3        4          5         6     7-n
#   slipunit ttyspeed loginname local-addr remote-addr mask opt-args
#
/sbin/ifconfig $7$1 down
/sbin/route delete $5 $4
arp -d $5
exit
#End of Script

Any help????

jam
*************************************************************************=
**
*       John A. Maier          * Research and Development                =
 *
* E-mail: johnam@datastorm.com * Datastorm Technologies Inc.             =
 *
*                              * Procomm Plus for Windows and DOS        =
 *
*                              * (314) 443-3283                          =
 *
*************************************************************************=
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