Date: Thu, 25 Feb 1999 08:31:07 +1000 From: "Hamish" <buckaroo@ecn.net.au> To: questions@freebsd.org Subject: More PPP arcana Message-ID: <19990225084725.B1E3914D49@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990225084725.B1E3914D49>
