*BSD News Article 45217


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!udel!news.sprintlink.net!howland.reston.ans.net!agate!newsxfer.itd.umich.edu!news.itd.umich.edu!usenet
From: mstaben@umich.edu (Matthew S. Staben)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I setup for PPP dailup? - more help needed!
Date: Thu, 08 Jun 1995 15:55:33 GMT
Organization: Kresge Hearing Institute
Lines: 72
Message-ID: <3r76hh$ip5@lastactionhero.rs.itd.umich.edu>
References: <3qrofn$oq7@news1.best.com> <3qv7b6$8ni@rodan.UU.NET>
Reply-To: mstaben@umich.edu
NNTP-Posting-Host: 141.214.14.16
X-Newsreader: Forte Free Agent v0.55

smm@uunet.uu.net (Steve Mansfield) wrote:

>In article <3qrofn$oq7@news1.best.com>,
>Etienne Finet  <efinet@insist.com> wrote:
>>I finally have the FreeBSD 2.0 running.
>>I have installed a 28.8KB modem.
>>What are the steps I have to take to get
>>this system connected to my Internet
>>provider.
>>How do I setup the PPP dailer?
>>I am quite new in this but I want to get this 
>>working!

>Well, I can help abit here, but have some problems myself.

>I'm using /etc/pppd.  The man page is mostly useful, with 2 noteable
>exceptions:

>1) You *must* have a /etc/ppp/options file.  It will not work if you
>don't, even if you include all necessary options in the command line, it
>will complain that the file doesn't exist.

>2) pppd will never tell the modem to dial, even with a properly set up
>chat script, unless you use -v.

>Now, for my problems (and if anyone can explain the above behaivior, be
>it my stupidity or undocumented "features" please, feel free!).  I can
>get my IP link itself up just fine, address negotiation takes place, and
>the default route is set up and I can get out and about....for about 30
>seconds, after which the link just hangs.  I thought it was line noise at
>my house at first, but I eliminated the line noise and the behaivior
>persists.  Does pppd use LQM?  The netblazer on the other end of my link
>will not recognize LQM, but after some traces on the interface on the
>netblazer, there was no sign of any lqm packets.  We may have missed them
>however.  Help!

PPP is actually quite easy to set up.  The first thing you will want
to do is set up a "chat" script, wherever you want.  If you're
administering a multi-user system, the script should be cloaked.  The
chat script is simply a dialogue, consisting of two parts.  The first
is the response, the second the command.  To begin with:

dialppp.scr, separate parts with spaces
------------------

-- ATZ
OK AT&Q5S11=95
OK ATDT<phone number>
CONNECT /r
ogin: mstaben
assword: <your password>
<prompt string> PPP


And then, you will want to create a command file, for example:

dialppp
-----------

PPPD /dev/cuaa0 speed 57600 -f "chat /usr/sbin/dialppp.scr" netmask
255.255.255.0, etc, etc. 

and then chmod u+x the file!

This will get the thing going.  It's real simple.  FYI, if you look
under /usr/share/FAQ/Text   you will find a neat way of setting up
your PPP, including an excellent script.

Matt