PPP: Chat script failed

JZL240I-U

Well-Known Member
Wenn ich ppp aufgerufen habe und dial eingebe, kommt die obige Fehlermeldung. Wie bekomme ich mehr Information, wo genau es klemmt? Verbosity level heraufsetzen, geht das, und wenn ja, wie? Debug-Modus von ppp vorhanden, falls ja, wie schalte ich ihn ein? Was würdet Ihr machen?
 
Also ich würde zuerst mal meine Config-Files und das genaue vorgehen bei der Einwahl (Konsolenmitschnitt) posten. Auch so Sachen wie: Ich habe Tutorial xy benutzt sind Infos, die ich noch in den Post schreiben würde.
Danach können einem die Leute hier meißt helfen. ;)
 
Meine Probleme sind hier:

http://www.bsdforen.de/showthread.php?t=23911&page=1
http://www.bsdforen.de/showthread.php?t=23911&page=2

und hier

http://www.bsdforen.de/showthread.php?t=24109&page=1
http://www.bsdforen.de/showthread.php?t=24109&page=2

schon mit etlichen freundlichen Unterstützern diskutiert worden, vielleicht war es deshalb hier zu knapp.

Hier die neusete Version meiner /etc/ppp/ppp.conf
Code:
#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.11.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#################################################################

default:
 set log Phase Chat LCP IPCP CCP tun command +connect
 ident user-ppp VERSION (built COMPILATIONDATE)
n24:
 # Ensure that "device" references the correct serial port
 # for your modem. (cuau0 = COM1, cuau1 = COM2)
 #
 set device /dev/cuaU0.1
 set speed 460800
 set phone *99***1\#
 set authname Ich
 set authkey "Mein Passwort"
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" \
	AT OK-AT-OK \
	AT+CFUN=1 OK-AT-OK \
	AT+CSQ OK \
	AT+CGDCONT=1,\\\"IP\\\",\\\"internet.mobilcom\\\" OK \
	AT+CGACT? OK-AT-OK \
	AT+CGATT? OK \
	AT+COPS? OK \
	ATD*99***1\# CONNECT \
#	ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 180			# 3 minute idle timer (the default)
 enable dns				# request DNS info (for resolv.conf)
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set vj slotcomp off
 set crtscts on
 add default HISADDR			# Add a (sticky) default route

papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#

# set phone *99***1\#
# set authname surfO2
# set authkey
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
set vj slotcomp off
set crtscts on
add default HISADDR # Add a (sticky) default route[/CODE]Aufgerufen mit
Code:
ppp n24
dial
Das ganze geht auf das Skript von Rakor aus dem WIKI zurück. HTH.

Aber das wichtigste ist IHMO, dass ich mehr Informationen aus dem System herauskitzeln kann, wo es denn nun hakt.
 
logmon /var/log/ppp.log bzw. tail -f /var/log/ppp.log sollten dir genug Infos zum Debuggen geben.
 
So, jetzt habe ich den Output von ppp.log:
Code:
Feb 10 12:15:27  ppp[992]: Phase: Using interface: tun0
Feb 10 12:15:27  ppp[992]: Phase: deflink: Created in closed state
Feb 10 12:15:27  ppp[992]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set device /dev/cuaU0.0
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set speed 460800
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set phone *99***1#
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set authname surfO2
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set authkey ********
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5            "" 	AT OK-AT-OK 	AT+CFUN=1 OK-AT-OK 	AT+CSQ OK 	AT+CGDCONT=1,\"IP\",\"internet.mobilcom\" OK 	AT+CGACT? OK-AT-OK 	AT+CGATT? OK 	AT+COPS? OK 	ATD*99***1# CONNECT #	ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set timeout 180
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: enable dns
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: set crtscts on
Feb 10 12:15:27  ppp[992]: tun0: Command: n24: add default HISADDR
Feb 10 12:15:27  ppp[992]: tun0: Phase: PPP Started (interactive mode).
Feb 10 12:15:31  ppp[992]: tun0: Command: /dev/ttyv2: dial
Feb 10 12:15:31  ppp[992]: tun0: Phase: bundle: Establish
Feb 10 12:15:31  ppp[992]: tun0: Phase: deflink: closed -> opening
Feb 10 12:15:31  ppp[992]: tun0: Phase: deflink: Connected!
Feb 10 12:15:31  ppp[992]: tun0: Phase: deflink: opening -> dial
Feb 10 12:15:31  ppp[992]: tun0: Chat: Phone: *99***1#
Feb 10 12:15:31  ppp[992]: tun0: Chat: deflink: Dial attempt 1 of 1
Feb 10 12:15:31  ppp[992]: tun0: Chat: Send: AT^M
Feb 10 12:15:31  ppp[992]: tun0: Chat: Expect(5): OK
Feb 10 12:15:36  ppp[992]: tun0: Chat: Expect timeout
Feb 10 12:15:36  ppp[992]: tun0: Chat: Send: AT^M
Feb 10 12:15:36  ppp[992]: tun0: Chat: Expect(5): OK
Feb 10 12:15:41  ppp[992]: tun0: Chat: Expect timeout
Feb 10 12:15:41  ppp[992]: tun0: Warning: Chat script failed
Feb 10 12:15:41  ppp[992]: tun0: Phase: deflink: dial -> hangup
Feb 10 12:15:41  ppp[992]: tun0: Phase: deflink: Disconnected!
Feb 10 12:15:41  ppp[992]: tun0: Phase: deflink: Connect time: 10 secs: 0 octets in, 0 octets out
Feb 10 12:15:41  ppp[992]: tun0: Phase: deflink: 0 packets in, 0 packets out
Feb 10 12:15:41  ppp[992]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed Feb 10 12:15:31 2010
Feb 10 12:15:41  ppp[992]: tun0: Phase: deflink: hangup -> closed
Feb 10 12:15:41  ppp[992]: tun0: Phase: bundle: Dead
Feb 10 12:15:53  ppp[992]: tun0: Command: /dev/ttyv2: quit
Feb 10 12:15:53  ppp[992]: tun0: Phase: PPP Terminated (normal).
Sagt Euch das irgendetwas? Ich kann hier keinen Ausweg erkennen...

<edit> @Elwood logmon gibt's bei mir nicht, tail funktionierte natürlich... </edit>
 
Last edited:
Back
Top