Subject: serial port inconsitency ???
To: None <macbsd-general@NetBSD.ORG>
From: noud de brouwer <noud@knot.nl>
List: macbsd-general
Date: 06/11/1995 01:17:24
I'm dialing in with MacPPP into 2, as far as i can see, identicaly
configured MacBSD systems. Using GENERIC #31. One off them is a IIcx
17/240. The other one a II with PMMU (no new roms) 5/148/20. No AppleTalk
plugged in.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gettytab:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# SupraFAXModem (14400)
#
sfm57600:\
:nx=sfm38400:tc=57600-baud:
sfm38400:\
:nx=sfm19200:tc=38400-baud:
sfm19200:\
:nx=sfm14400:tc=19200-baud:
sfm14400:\
:nx=sfm12000:tc=14400-baud:
sfm12000:\
:nx=sfm9600:tc=12000-baud:
sfm9600:\
:nx=sfm7200:tc=9600-baud:
sfm7200:\
:nx=sfm4800:tc=7200-baud:
sfm4800:\
:nx=sfm2400:tc=4800-baud:
sfm2400:\
:nx=sfm1200:tc=2400-baud:
sfm1200:\
:nx=sfm600:tc=1200-baud:
sfm600:\
:nx=sfm300:tc=600-baud:
sfm300:\
:nx=sfm57600:tc=300-baud:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ttys:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tty00 "/usr/libexec/getty sfm57600" unknown on secure rtscts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hostname.ae0/hostname.ppp0:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
inet dns 255.255.255.0 193.78.85.255
NONE NONE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
resolv.conf:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
domain knot.nl
nameserver 193.78.85.7
nameserver 193.78.85.4
lookup file bind
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mygate (IIx):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sdns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
master.passwd:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ppp:***:117:0::0:0:PPP client login:/tmp:/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
# configure all of the interfaces which we know about.
# do this by reading /etc/hostname.* files, where * is the name
# of a given interface.
#
# these files are formatted like the following, but with no # at the
# beginning of the line
#
# addr_family hostname netmask broadcast_addr options
# dest dest_addr
#
# addr_family is the address family of the interface, generally inet
# hostname is the host name that belongs to the interface, in /etc/hosts.
# netmask is the network mask for the interface.
# broadcast_addr is the broadcast address for the interface
# options are misc. options to ifconfig for the interface.
#
# dest is simply the string "dest" (no quotes, though) if the interface
# has a "destination" (i.e. it's a point-to-point link, like SLIP).
# dest_addr is the hostname of the other end of the link, in /etc/hosts
#
# the only required contents of the file are the addr_family field
# and the hostname.
(
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:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r-- 1 root wheel 0 Jun 10 13:08 dialinhost
-r-xr-xr-x 1 root wheel 166 Jun 8 22:53 ip-down
-r-xr-xr-x 1 root wheel 221 Jun 9 02:41 ip-up
-rw-r--r-- 1 root wheel 103 Jun 10 14:20 options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
options:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modem crtscts proxyarp kdebug 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myname (IIcx):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dns.knot.nl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hosts (dns:=IIcx):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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.7 dns.knot.nl dns
127.1 localhost
#
# Imaginary network.
193.78.85.2 phone.knot.nl phone
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:50 phone /netbsd: ppp0 output: ff03c02101010012010405dc05062fd71cc1
07020802
Jun 10 20:31:50 phone /netbsd: ppp0 output: ff03c02101010012010405dc05062fd71cc1
07020802
Jun 10 20:31:51 phone /netbsd: ppp0 output: ff03c021026f001402060000000005060000
002a07020802
Jun 10 20:31:51 phone /netbsd: ppp0 output: ff03c021026f001402060000000005060000
002a07020802
Jun 10 20:31:53 phone /netbsd: ppp0 output: ff03c02101010012010405dc05062fd71cc1
07020802
Jun 10 20:31:53 phone /netbsd: ppp0 output: ff03c02101010012010405dc05062fd71cc1
07020802
Jun 10 20:31:53 phone /netbsd: ppp0: garbage received: 0x80 (need 0xFF)
Jun 10 20:31:53 phone /netbsd: ppp0: garbage received: 0x80 (need 0xFF)
Jun 10 20:31:54 phone /netbsd: ppp0 output: ff038021010100100306c14e55020206002d
0f01
Jun 10 20:31:54 phone /netbsd: ppp0 output: ff038021010100100306c14e55020206002d
0f01
Jun 10 20:31:56 phone /netbsd: ppp0 output: ff038021027100100206002d0f010306c14e
5506
Jun 10 20:31:56 phone /netbsd: ppp0 output: ff038021027100100206002d0f010306c14e
5506
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
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.
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#
+++++++++++++++++++++++++++++++++++++++++
dns/IIcx
+++++++++++++++++++++++++++++++++++++++++
dns# 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 ppp, 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:32 dns /netbsd: ppp0 output: ff03c02101010012010405dc05062fdfb2af07
020802
Jun 10 14:23:32 dns /netbsd: ppp0 output: ff03c02101010012010405dc05062fdfb2af07
020802
Jun 10 14:23:35 dns /netbsd: ppp0 output: ff03c021026a00140206000000000506000000
2a07020802
Jun 10 14:23:35 dns /netbsd: ppp0 output: ff03c021026a00140206000000000506000000
2a07020802
Jun 10 14:23:35 dns /netbsd: ppp0 output: ff03c02101010012010405dc05062fdfb2af07
020802
Jun 10 14:23:35 dns /netbsd: ppp0 output: ff03c02101010012010405dc05062fdfb2af07
020802
Jun 10 14:23:36 dns /netbsd: ppp0: garbage received: 0x80 (need 0xFF)
Jun 10 14:23:36 dns /netbsd: ppp0: garbage received: 0x80 (need 0xFF)
Jun 10 14:23:36 dns /netbsd: ppp0 output: ff038021010100100306c14e55070206002d0f
01
Jun 10 14:23:36 dns /netbsd: ppp0 output: ff038021010100100306c14e55070206002d0f
01
Jun 10 14:23:39 dns /netbsd: ppp0 output: ff038021026c00100206002d0f010306c14e55
06
Jun 10 14:23:39 dns /netbsd: ppp0 output: ff038021026c00100206002d0f010306c14e55
06
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.6
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)
dns# 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
noud dns UH 0 0 ppp0
dns 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
dns# 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 ***
dns# 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)
dns# 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
noud dns UH 0 0 ppp0
dns 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
ppp 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- IIcx does start ppp but no ip-up script.
Anyone has got some idee's? Is my next step a valid one?:
swap the IIcx for a II & PMMU & new roms?
(haven't got another II & PMMU & OLD roms!)
ThanX in advance
noud