Subject: dialup problems
To: NetBSD/mac68k Mailing List <port-mac68k@NetBSD.ORG>
From: SamMaEl <rimsky@teleport.com>
List: port-mac68k
Date: 02/25/1998 04:56:00
	I tried to get both a dialup shell and PPP working again tonight,
and both failed again. I DO get a connection, in both cases. But, either
getty is not recognizing the connection, or something else is going wrong,
because I have tried every terminal program that I have, with every form
of flow control and tried both 1, 0, and auto stop bits... everything I
could try. I went through the termcap manpage, the /usr/share/misc/termcap
database (to find /etc/gettytab syntaxes, etc), the /etc/gettytab file and
manpage, the manpage for /etc/ttys, the getty manpage... and nothing has
helped. I took someone's suggestion and tried adding 'local' to the line
in /etc/ttys, but that didn't help either. 8-( I also tried rtscts, and
mdmbuf, but neither of those helped either.

	I was using a Global Village Gold (the performa model with the
weird connector) on the NetBSD side, and a Golbal Village Platinum modem
MacOS side on my powerbook. The NetBSD machine is a Q630... the modem
dials up with PPP fine, and works normally. When I dialup the NetBSD
machine, I DO get a connection. Or, at least the modems both connect. Both
Microphone and ZTerm tell me that a connection has been established. Some
options (local in /etc/ttys, and various others) DO give me some garbage
in my terminal program when I connect, but every other setting I tried
gave me nothing on connect, even after hitting return many many times.

	So... is there any way to see if getty is actually noticing the
connection, or how can I tell what's going on from the NetBSD side?

	As for PPP. I have gotten that to ALMOST work. Modem answers,
FreePPP and pppd chat back and forth and decide that I am in fact who I
say I am, and log me in. MacTCP Watcher gets the name lookups properly,
and the Powerbook gets recognized as ppp0.woo.org (the name I set aside
for the 1st ppp IP address), and therefore it is getting its IP address
just fine. But, any TCP, UDP or ICMP tests to any host on the ETHERNET
from the laptop (which IS disconnected from the Ethernet during this test,
so can only communicate via ppp) fail. Name lookups work just fine
however... and TCP/UDP/ICMP tests to IP's on the network fail as well. 

	I am guessing it is a routing problem. But, since OT doesn't let
you set your router with PPP... I have to rely on NetBSD telling the
Powerbook where to look, and it isn't doing that obviously. I've tried
using defaultroute in the options file, but all that does is creates a
defaultroute from the NetBSD machine to the laptop 8-(

	Here is my options file:

#
# Options file for DIALUP ppp
#
cdtrcts                    
netmask 255.255.255.0
domain woo.org           # my domain
defaultroute             # try adding a default route?
passive
modem
silent
proxyarp                 
login
persist
#debug
#kdebug 1
login

	And here is how I am invoking pppd, with a script:
#
# This will setup pppd and ready it for our dialup
#

/usr/sbin/pppd file /etc/ppp/dialup-ppp/options 192.168.1.1:192.168.2.1
/dev/tty01 57600 # this is on the same line as the above line...

	Or, should I be using a different netmask, since the ppp IP's are
in the 192.168.2.* network?

	Any help is appreciated. I'm thinking about adding yet another
line so friends can log in and play games and send e-mail and stuff.
Nothing TOO important, but it's proving to be a good experiment. I've
already learned alot about terminal emulation ;-)

	Ryan

	P.S. And once again... this would probably be a great candidate
for a HOW-TO to be written, and would be pretty system independent (except
maybe, modem devices, etc...) Hint, hint, hint... ;-)

-----
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!