Subject: Re: ip connection using pppd and pap
To: None <bwildasi@csulb.edu>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 10/31/1997 11:09:57
> Hi!
> I'm just a casual user of this stuff, but would appreciate any
> suggestions for getting my modem to dial and pppd to connect netbsd to
> my school's computer using pap.
> I'm sorry, but the man pages for pppd are simply not sufficient for me
> to figure this out for myself w/o examples, and the extensive ppp faq
> for the bsd family seems to be mainly for freebsd which uses different
> ppp files, although i've tried the suggestion of using ppp.setup.gz.
> 
> Anyway, I'm sure my difficulty is just some stupid user error. So,
> without further ado...thanks for all the suggestions everybody has sent
> for pppd and pap questions, but  i've never gotten a valid ppp
> connection with netbsd and my school (a NeXT machine)--at least the
> modem use to continuously redail. I've tried the old and new ppp.setup
> files, but nothing's working. Does /etc/ttys need to be altered to fire
> up the modem?

Did you get sample chat scripts from your modem pool?

My suspicion is that there's something else you need to do in
the chat script.

> Here's what i've been getting,
> ppp-up
> connecting...done  <by the way, there is NO dial tone or anything from
> the modem here>

It now says "Starting the pppd daemon" which is what it's really doing.

> #Oct 28 17:20:07 mynamepppd[215]:pppd2.3.1 Started by root uid0
> #Oct 28 17:20:07 mynamepppd[215]:Connect: pppp0 <--> /dev/tty00
> #Oct 28 17:20:07 mynamepppd[215]:Serial line is looped back
> #Oct 28 17:20:07 mynamepppd[215]:Connection terminated.
> #Oct 28 17:20:07 mynamepppd[215]:Disconnect script failed.

Sounds like you're talking to a command line, not a ppp daemon.
Get the sample script & see if maybe it sends "ppp" here.

> Now, if I add a "nomagic" to ppp-up to turn off a buggy peer, this is
> what I get:
> ppp-up
> connecting...done  <by the way, there is STILL NO dial tone or anything
> from the modem here>
> #Oct 28 17:24:03 mynamepppd[305]:pppd2.3.1 Started by root uid0
> #Oct 28 17:24:03 mynamepppd[305]:Connect: pppp0 <--> /dev/tty00
> #Oct 28 17:24:03 mynamepppd[305]:Deflate (15) Compression enabled
> #Oct 28 17:24:03 mynamepppd[305]:Could not determine remote ip address
> #Oct 28 17:24:03 mynamepppd[305]:Could not determine remote ip address
> #Oct 28 17:24:03 mynamepppd[305]:Connection terminated.
> #Oct 28 17:24:03 mynamepppd[305]:Disconnect script failed.
> 
> ifconfig -a
> sn0: flags=8822<BROADCAST, NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
> address: 08:00:07:54:0f:66
> ppp0:flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> ppp1:flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> lo0:flags=8009<UP,LOOPBACK,MULTICAST> mtu 2976
> inet 127.0.0.1 netmask 0xff000000
> sl0:flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
> 
> Jeffery's note a while back seems to make alot of sense, but since
> there's so many ppp files i'm not sure how to plug in his suggestions:

That change goes into the chat script.

> 
> Here's the ppp.setup.tgz files configured the best I could thus far:
> #-----------> options.debug
> passive
> crtscts
> defaultroute
> lock
> lcp-echo-interval 30
> lcp-echo-failure 10
> netmask 255.255.0.0
> domain csulb.edu
> mtu 1500
> name bwildasi
This option tries to make your computer be named "bwildasi". I
think the "user" option, which sets the user account for authentication,
is the option you want.
> disconnect /etc/ppp/ppp-down
> debug kdebug 1
> #-----------------> ppp-chat
> ABORT BUSY
> ABORT "NO CARRIER"
> ABORT "NO DIAL"
> TIMEOUT 10
> "" ATZ OK AT&FE1V1Q0&A3&B1&H1&R2&D0&C1X4S0=0S7=90
> OK ATDT$NUMBER
> TIMEOUT 60
> CONNECT ""

Looks fine for a pap-only server. But check the sample your modem folks
give you.

Good luck.

Take care,

Bill