Subject: SLIP connection
To: None <port-vax@netbsd.org, port-i386@netbsd.org, tech-net@netbsd.org>
From: A. Wik <awik@gmx.net>
List: tech-net
Date: 03/12/2001 01:55:54
I'm trying to set up a SLIP connection between my
VAXstation 4000/60 and a DECpc (Pentium-60).  I've
connected a null modem cable between COM2 on the
DECpc and the 25-pin serial port on the VAXstation.

I believe the 25-pin serial port on the VAX is
/dev/tty02 - is this correct?

I've executed the following commands -

on the VAXstation:
slattach /dev/tty02
ifconfig sl0 192.168.1.1 192.168.1.2 up

and on the DECpc:
slattach /dev/tty01
ifconfig sl0 192.168.1.2 192.168.1.1 up

But alas, the machines still cannot ping each other -

from the DECpc:
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: No route to host

from the VAXstation:
# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
^C
----192.168.1.2 PING Statistics----
3 packets transmitted, 0 packets received, 100.0% packet loss

In fact, they can't even ping the address of their own sl0
interfaces -

from the VAXstation:
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
112 bytes from p133 (10.0.0.32): Destination Net Unreachable for icmp_seq=0
112 bytes from p133 (10.0.0.32): Destination Net Unreachable for icmp_seq=1
^C
----192.168.1.1 PING Statistics----
2 packets transmitted, 0 packets received, 100.0% packet loss

[same thing on the DECpc.]

The routing tables look correct -

on the VAXstation:
# netstat -rn
Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            10.0.0.32          UGS         0       23   1500  le0
10/24              link#1             UC          0        0   1500  le0
10.0.0.32          00:50:04:4d:90:a8  UHL         1       49   1500  le0
10.0.0.64          00:10:4b:37:66:d5  UHL         1     6355   1500  le0
10.0.0.255         link#1             UHL         1       82   1500  le0
127                127.0.0.1          UGRS        0        0  33228  lo0
127.0.0.1          127.0.0.1          UH          1        0  33228  lo0
192.168.1.2        192.168.1.1        UGHS        0        4   1500  sl0

and on the DECpc:
# netstat -rn
Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            10.0.0.32          UGS         1       14   1500  ep0
10/24              link#1             UC          3        0   1500  ep0
10.0.0.32          00:50:04:4d:90:a8  UHLc        1      310   1500  ep0
10.0.0.64          00:10:4b:37:66:d5  UHLc        1     6388   1500  ep0
10.0.0.255         link#1             UHLc        1       66   1500  ep0
127                127.0.0.1          UGRS        0        0  33228  lo0
127.0.0.1          127.0.0.1          UH          1        0  33228  lo0
192.168.1.1        192.168.1.2        UGHS        0        2   1500  sl0

I can't see anything wrong with the ifconfig output either -

VAXstaton:
# ifconfig -a
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 08:00:2b:2a:f8:87
        media: Ethernet manual
        status: active
        inet 10.0.0.16 netmask 0xffffff00 broadcast 10.0.0.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
        inet 127.0.0.1 netmask 0xff000000
sl0: flags=8091<UP,POINTOPOINT,NOARP,MULTICAST> mtu 296
        inet 192.168.1.1 -> 192.168.1.2 netmask 0xffffff00

DECpc:
# ifconfig -a
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:60:97:d9:cd:b4
        media: Ethernet 10baseT
        inet 10.0.0.70 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::260:97ff:fed9:cdb4%ep0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
        inet 127.0.0.1 netmask 0xff000000
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
sl0: flags=8091<UP,POINTOPOINT,NOARP,MULTICAST> mtu 296
        inet 192.168.1.2 -> 192.168.1.1 netmask 0xffffff00

Am I missing something, or is SLIP broken in NetBSD 1.5?