From owner-freebsd-questions Thu Feb 25 1:27:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id 8F82514C09 for ; Thu, 25 Feb 1999 01:27:42 -0800 (PST) (envelope-from Thierry.Herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id KAA19585; Thu, 25 Feb 1999 10:26:06 +0100 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id KAA03391; Thu, 25 Feb 1999 10:23:52 +0100 (MET) Received: from telss1.telspace.alcatel.fr (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with SMTP id KAA14321; Thu, 25 Feb 1999 10:10:40 +0100 (MET) Received: from telspace.alcatel.fr (nairobi.telspace.alcatel.fr) by telss1.telspace.alcatel.fr (4.1/SMI-4.1) id AA16079; Thu, 25 Feb 99 10:19:50 +0100 Message-Id: <36D516E4.9D38DFF1@telspace.alcatel.fr> Date: Thu, 25 Feb 1999 10:24:52 +0100 From: HERBELOT Thierry Organization: Alcatel Telspace X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: en Mime-Version: 1.0 To: Hamish Cc: questions@FreeBSD.ORG Subject: Re: More PPP arcana References: <19990225084725.B1E3914D49@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG PPP in 2.2.6-Release is buggy (or was it in 2.2.5-R ?) You should upgrade to a later release and try again (I don't have the URL on hand, but you sould find it by scanning the mail archives for posts from Brian Somers , the official PPP maintainer - it must be www.awfulhak.org) TfH Hamish wrote: > > Hi everyone, > > I am still having problems with ppp using FreeBSD 2.2.6, was hoping someone > might be able to point out my mistake(s)... > > In a nutshell, I can get interactive ppp working fine, but getting it to run > via scripts just isn't happening. Here's what works (interactive). > > su-2.01# ppp -alias > Working in interactive mode > Using interface: tun0 > ppp ON cave> set authname auth > ppp ON cave> set authkey pass > ppp ON cave> set timeout 0 > ppp ON cave> term > deflink: Entering terminal mode on /dev/cuaa0 > Type `~?' for help > atdt32225056 > CONNECT 57600 > > Packet mode detected. > > PPP ON cave> > PPP ON cave> delete ALL > PPP ON cave> add default HISADDR > > The above gets the connection, everything. Every time. > > Now, the following DOESN'T work... being the contents of my /etc/ppp/ppp.conf: > > default: > set device /dev/cuaa0 > set speed 57600 > set dial "ATDT32225056" > set redial 60 > set reconnect 60 4 > > background: > set authname auth > set authkey pass > set phone "32225056" > set timeout 0 > delete ALL > add 0 0 HISADDR > > I have tried lots of other variants on the dial string as well, most of them > cut and pasted from various doco, with minimal changes. Some make the lights on > the modem change, but none actually dial. I reduced the dial string to the one > above in an attempt to simplify the problem. > > I use > su-2.01# ppp -alias -background > to run it, and this is a typical excerpt from /var/log/ppp.log for a connect: > > Feb 24 18:58:41 cave ppp[5596]: Phase: Using interface: tun0 > Feb 24 18:58:41 cave ppp[5596]: Phase: deflink: Created in closed state > Feb 24 18:58:41 cave ppp[5597]: Phase: PPP Started (background mode). > Feb 24 18:58:41 cave ppp[5597]: Phase: bundle: Establish > Feb 24 18:58:41 cave ppp[5597]: Phase: deflink: closed -> opening > Feb 24 18:58:41 cave ppp[5597]: Phase: deflink: Connected! > Feb 24 18:58:41 cave ppp[5597]: Phase: deflink: opening -> dial > Feb 24 18:58:55 cave ppp[5597]: Warning: Chat script failed > Feb 24 18:58:55 cave ppp[5597]: Phase: deflink: dial -> hangup > Feb 24 18:58:55 cave ppp[5597]: Phase: deflink: Disconnected! > Feb 24 18:58:55 cave ppp[5597]: Phase: deflink: Connect time: 14 secs: 0 octets > in, 0 octets out > Feb 24 18:58:55 cave ppp[5597]: Phase: total 0 bytes/sec, peak 0 bytes/sec on > Wed Feb 24 18:58:55 1999 > Feb 24 18:58:55 cave ppp[5597]: Phase: deflink: hangup -> closed > Feb 24 18:58:55 cave ppp[5597]: Phase: bundle: Dead > Feb 24 18:58:56 cave ppp[5597]: Phase: PPP Terminated (normal). > Feb 24 18:58:56 cave ppp[5597]: Phase: Parent notified of success. > Feb 24 18:58:56 cave ppp[5596]: Phase: Parent: Child failed (errdead). > > "Warning: Chat script failed" prolly means the chat script failed, but I am > having real trouble getting ANY chat scripts to work. I've also used (out of > /etc/ppp/ppp.conf.sample): > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK > \\dATDT\\T TIMEOUT 40 CONNECT" > > and a few reductions of that, but no luck. Doesn't even dial. > > Any help would be greatly appreciated, > Confused Hamish > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message