From owner-freebsd-questions Thu Feb 25 1:32:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id 2E52A14CEA for ; Thu, 25 Feb 1999 01:32:09 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.12 #1) id 10Fx94-0009rK-00; Thu, 25 Feb 1999 09:31:51 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id JAA02116; Thu, 25 Feb 1999 09:31:41 GMT Received: from uk.radan.com (gppsun4) by beavis.uk.radan.com (4.1/SMI-4.1) id AA03832; Thu, 25 Feb 99 09:31:39 GMT Message-Id: <36D51873.CEE9563A@uk.radan.com> Date: Thu, 25 Feb 1999 09:31:31 +0000 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 4.1.3_U1 sun4m) X-Accept-Language: en-GB 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 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 > Where's the ``set dial.....'' entry? > 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 That's because there is no dial string (``set dial ....'') defined. > "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" > _How_ have you used it? It's not in your ppp.conf that you included above > 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 -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message