*BSD News Article 44441


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!gatech!usenet.eel.ufl.edu!spool.mu.edu!agate!violet.berkeley.edu!jkh
From: jkh@violet.berkeley.edu (Jordan K. Hubbard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FOLLOWUP: PPP client setup help - The final chapter
Date: 21 May 1995 08:44:01 GMT
Organization: University of California, Berkeley
Lines: 32
Message-ID: <3pmugh$2j8@agate.berkeley.edu>
References: <betts.28.00A4DF49@onramp.net>
NNTP-Posting-Host: violet.berkeley.edu

In article <betts.28.00A4DF49@onramp.net>, Jeff Betts <betts@onramp.net> wrote:
>The PPP.faq lists three steps to connect:
>   1. Dial to remote host using kermit ...
>   2. Exit kermit (without hanginh up the line)
>   3. Enter the pppd command [deleted here to save space]
>
>Using the kermit.dial script from PPP.faq, kermit violates step 2
>above and *always* hangs up the line.

Sorry, the PPP.faq is somewhat in error.  You need to either not really
"exit" kermit (suspend it, or use a shell-escape from the kermit prompt)
or you need to set the modem to ignore DTR transitions (AT&D0 in the Hayes
standard command set).  The problem with getting it to ignore DTR transitions
is that it won't hang up properly when you kill slattach, if that's the
way you choose to close the link.  I had a script that would kill slattach
and then use kermit to connect to the modem and hang it up (+++ and ATH).

Fortunately, this is all a bodge that can go away in 2.0-950412-SNAP and
later.  Simply use ijppp!  It's in /usr/bin/ppp, and handles everything.
Dialing, PPP negotiation (including advanced CHAP/PAP negotiation) and
it's totally on-demand, meaning that you can set a timeout and it will
hang up the line after a certain interval and "go passive."  When you
need to talk to a remote host again, it will wake up automagically and
dial the line.  I have it started in my rc.local, and when the system boots
it dials up my provider in response to my ntpdate setting to update the
system clock from inet-gw-1.pa.dec.com.. :-)  Works a charm.  Since I don't
pay for my ppp access, I also have timeout set to 0 so that it's always
up and only redials if and when the line drops for some reason.

Jordan-bob says Check it out!

					Jordan