On Tue, 2 Feb 1999, Robert Witkop wrote:
|I am having difficulty getting PPP to work on my home machine.
|The LCP negotiation and IPCP negotiation appear OK to me. I
|cannot determine why the modem disconnects after the dynamic
|local and remote addresses are assigned. Does anyone have any
|suggestion as to what is wrong with my files, or what other
|files I should be looking at. Any suggestions would be helpful.
|I am using ppp 2.3.3 with Linux 2.0.34 (rh5.1)
<snip>
|*** /etc/ppp/ppp-on-dialer
|#!/bin/sh
|#
|# ppp-on-dialer
|# This is part 2 of the ppp-on script. It will perform the connection
|# protocol for the desired connection.
|#
| /usr/sbin/chat -v \
| TIMEOUT 3 \
| ABORT 'BUSY' \
| ABORT 'NO ANSWER' \
| ABORT 'NO DIALTONE' \
| ABORT 'NO CARRIER' \
| ABORT 'Invalid Login' \
| ABORT 'Login Incorrect' \
| TIMEOUT 120 \
| '' ATZ \
| OK ATDT$TELEPHONE \
| CONNECT '' \
| ogin:--ogin: $ACCOUNT \
| assword: $PASSWORD
<snip>
|Feb 1 15:51:05 linuxpc pppd[750]: pppd 2.3.3 started by witkop, uid 500
|Feb 1 15:51:06 linuxpc chat[752]: timeout set to 3 seconds
|Feb 1 15:51:06 linuxpc chat[752]: abort on (BUSY)
|Feb 1 15:51:06 linuxpc chat[752]: abort on (NO ANSWER)
|Feb 1 15:51:06 linuxpc chat[752]: abort on (NO DIALTONE)
|Feb 1 15:51:06 linuxpc chat[752]: abort on (NO CARRIER)
|Feb 1 15:51:06 linuxpc chat[752]: abort on (Invalid Login)
|Feb 1 15:51:06 linuxpc chat[752]: abort on (Login Incorrect)
|Feb 1 15:51:06 linuxpc chat[752]: timeout set to 120 seconds
|Feb 1 15:51:06 linuxpc chat[752]: send (ATZ^M)
|Feb 1 15:51:06 linuxpc chat[752]: expect (OK)
|Feb 1 15:51:06 linuxpc chat[752]: ATZ^M^M
|Feb 1 15:51:06 linuxpc chat[752]: OK
|Feb 1 15:51:06 linuxpc chat[752]: -- got it
|Feb 1 15:51:06 linuxpc chat[752]: send (ATDT331-0105^M)
|Feb 1 15:51:06 linuxpc chat[752]: expect (CONNECT)
|Feb 1 15:51:06 linuxpc chat[752]: ^M
|Feb 1 15:51:28 linuxpc chat[752]: ATDT331-0105^M^M
|Feb 1 15:51:28 linuxpc chat[752]: CONNECT
|Feb 1 15:51:28 linuxpc chat[752]: -- got it
|Feb 1 15:51:28 linuxpc chat[752]: send (^M)
|Feb 1 15:51:28 linuxpc chat[752]: expect (ogin:)
|Feb 1 15:51:28 linuxpc chat[752]: 57600^M
|Feb 1 15:51:30 linuxpc chat[752]: ^M
|Feb 1 15:51:30 linuxpc chat[752]: ^M
|Feb 1 15:51:30 linuxpc chat[752]: login:
|Feb 1 15:51:30 linuxpc chat[752]: -- got it
|Feb 1 15:51:30 linuxpc chat[752]: send (MyAccountName^M)
|Feb 1 15:51:30 linuxpc chat[752]: expect (assword:)
|Feb 1 15:51:30 linuxpc chat[752]: ^M
|Feb 1 15:51:34 linuxpc chat[752]: login: MyAccountName^M
This may be the key to your problem. It looks to me like another login
prompt followed by the MyAccountName that you sent in response to the first
login prompt. This could mean that the extra carriage return sent by the
expect/send <CONNECT ''> in ppp-on-dialer is causing trouble, even though
it looks like the login/password was successful.
Try replacing <CONNECT ''> with <CONNECT '\c'>. See "man chat" for why.
The really peculiar thing, if this really fixes things, is that the ppp
negotiation completes and more than 2 minutes elapse before the connection
is broken. It's so extraordinary that I'm not at all sure that the
suggestion above will take care of your problem.
|Feb 1 15:51:34 linuxpc chat[752]: Password:
|Feb 1 15:51:34 linuxpc chat[752]: -- got it
|Feb 1 15:51:34 linuxpc chat[752]: send (MyPassword^M)
|Feb 1 15:51:34 linuxpc pppd[750]: Serial connection established.
|Feb 1 15:51:35 linuxpc pppd[750]: Using interface ppp0
|Feb 1 15:51:35 linuxpc pppd[750]: Connect: ppp0 <--> /dev/ttyS3
|Feb 1 15:51:35 linuxpc pppd[750]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0x7fff> <pcomp> <accomp>]
|Feb 1 15:51:35 linuxpc pppd[750]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0x6720442e> <pcomp> <accomp>]
|Feb 1 15:51:35 linuxpc pppd[750]: sent [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic 0x6720442e> <pcomp> <accomp>]
|Feb 1 15:51:35 linuxpc pppd[750]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic 0x7fff> <pcomp> <accomp>]
|Feb 1 15:51:35 linuxpc pppd[750]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>
<compress VJ 0f 01>]
|Feb 1 15:51:35 linuxpc pppd[750]: rcvd [IPCP ConfReq id=0x1 <compress VJ
0f 00> <addr 209.63.56.4>]
|Feb 1 15:51:35 linuxpc pppd[750]: sent [IPCP ConfAck id=0x1 <compress VJ
0f 00> <addr 209.63.56.4>]
|Feb 1 15:51:35 linuxpc pppd[750]: rcvd [IPCP ConfNak id=0x1 <addr
209.63.56.27>]
|Feb 1 15:51:35 linuxpc pppd[750]: sent [IPCP ConfReq id=0x2 <addr
209.63.56.27> <compress VJ 0f 01>]
|Feb 1 15:51:36 linuxpc pppd[750]: rcvd [IPCP ConfAck id=0x2 <addr
209.63.56.27> <compress VJ 0f 01>]
|Feb 1 15:51:36 linuxpc pppd[750]: local IP address 209.63.56.27
|Feb 1 15:51:36 linuxpc pppd[750]: remote IP address 209.63.56.4
|Feb 1 15:53:52 linuxpc pppd[750]: Modem hangup
|Feb 1 15:53:52 linuxpc pppd[750]: Connection terminated.
|Feb 1 15:53:52 linuxpc pppd[750]: Exit.
The ppp negotiations look good to me.
---
Clifford Kite Not a guru. (tm)
[EMAIL PROTECTED] Not even close.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]