Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 09:31:31 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        Hamish <buckaroo@ecn.net.au>
Cc:        questions@freebsd.org
Subject:   Re: More PPP arcana
Message-ID:  <36D51873.CEE9563A@uk.radan.com>
References:  <19990225084725.B1E3914D49@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D51873.CEE9563A>