Hi,
I had set up my Linux PPP to connect a server last year
(possibly a DEC Alpha server). It have been working well. When I tried
to use the same script to connect another ISP's server, the connection
could
also be established, but no assigned addresss had returned and no route
had been set up. About 1 min, the connection was terminated with the
message: " LCP: timeout sending Config-Requests ".
Could anybody help me with this.
Thanks
Eddy
======================================================================
The /var/log/messages:
Aug 11 12:57:59 localhost pppd[4047]: pppd 2.2.0 started by ling, uid 0
Aug 11 12:58:00 localhost chat[4053]: timeout set to 10 seconds
Aug 11 12:58:00 localhost chat[4053]: abort on (\nBUSY\r)
Aug 11 12:58:00 localhost chat[4053]: abort on (\nNO ANSWER\r)
Aug 11 12:58:00 localhost chat[4053]: abort on
(\nRINGING\r\n\r\nRINGING\r)
Aug 11 12:58:00 localhost chat[4053]: send (rAT^M)
Aug 11 12:58:01 localhost chat[4053]: expect (OK)
Aug 11 12:58:01 localhost chat[4053]: rAT^M^M
Aug 11 12:58:01 localhost chat[4053]: OK -- got it
Aug 11 12:58:01 localhost chat[4053]: send (ATH0^M)
Aug 11 12:58:01 localhost chat[4053]: timeout set to 720 seconds
Aug 11 12:58:01 localhost chat[4053]: expect (OK)
Aug 11 12:58:01 localhost chat[4053]: ^M
Aug 11 12:58:01 localhost chat[4053]: ATH0^M^M
Aug 11 12:58:01 localhost chat[4053]: OK -- got it
Aug 11 12:58:01 localhost chat[4053]: send (ATM1^M)
Aug 11 12:58:01 localhost chat[4053]: expect (OK)
Aug 11 12:58:01 localhost chat[4053]: ^M
Aug 11 12:58:01 localhost chat[4053]: ATM1^M^M
Aug 11 12:58:01 localhost chat[4053]: OK -- got it
Aug 11 12:58:01 localhost chat[4053]: send (ATDT3069797^M)
Aug 11 12:58:01 localhost chat[4053]: expect (CONNECT)
Aug 11 12:58:01 localhost chat[4053]: ^M
Aug 11 12:58:25 localhost chat[4053]: ATDT3069797^M^M
Aug 11 12:58:25 localhost chat[4053]: CONNECT -- got it
Aug 11 12:58:25 localhost chat[4053]: send (^M)
Aug 11 12:58:25 localhost chat[4053]: expect (name:)
Aug 11 12:58:25 localhost chat[4053]: 38400^M
Aug 11 12:58:26 localhost chat[4053]: ^M
Aug 11 12:58:26 localhost chat[4053]: ^M
Aug 11 12:58:26 localhost chat[4053]: User Access Verification^M
Aug 11 12:58:26 localhost chat[4053]: ^M
Aug 11 12:58:26 localhost chat[4053]: Username: -- got it
Aug 11 12:58:26 localhost chat[4053]: send (aaaaaa^M)
Aug 11 12:58:26 localhost chat[4053]: expect (assword:)
Aug 11 12:58:26 localhost chat[4053]: lche005^M
Aug 11 12:58:26 localhost chat[4053]: Password: -- got it
Aug 11 12:58:26 localhost chat[4053]: send (xxxxxx^M)
Aug 11 12:58:26 localhost chat[4053]: expect (tion:)
Aug 11 12:58:26 localhost chat[4053]: ^M
Aug 11 12:58:26 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost last message repeated 25 times
Aug 11 12:58:27 localhost chat[4053]: 1 "Start PPP"^M
Aug 11 12:58:27 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost chat[4053]: 2 "Go to Shell
Account"^M
Aug 11 12:58:27 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost chat[4053]: 3 "Telnet to
Chollian"^M
Aug 11 12:58:27 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost chat[4053]: 4 "WorldServe
(BBS)"^M
Aug 11 12:58:27 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost chat[4053]: 5 "Exit"^M
Aug 11 12:58:27 localhost chat[4053]: ^M
Aug 11 12:58:27 localhost chat[4053]: Selection: -- got it
Aug 11 12:58:27 localhost chat[4053]: send (1^M)
Aug 11 12:58:27 localhost pppd[4047]: Serial connection established.
Aug 11 12:58:28 localhost pppd[4047]: Using interface ppp0
Aug 11 12:58:28 localhost pppd[4047]: Connect: ppp0 <--> /dev/modem
Aug 11 12:59:02 localhost pppd[4047]: LCP: timeout sending
Config-Requests
Aug 11 12:59:02 localhost pppd[4047]: Connection terminated.
Aug 11 12:59:02 localhost pppd[4047]: Exit.
=============================================================================
my script to start PPP connection:
#!/bin/sh
TELEPHONE=3069797
ACCOUNT=lche005
PASSWORD=xxxxxx
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.0.0
CHOICE=1
export TELEPHONE ACCOUNT PASSWORD CHOICE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug mru 552 lock modem crtscts /dev/modem 38400 \
defaultroute asyncmap 20A0000 $LOCAL_IP:$REMOTE_IP \
connect $DIALER_SCRIPT
===========================================================
My dialer script (/etc/ppp/ppp-on-dialer):
#!/bin/sh
exec chat -v \
TIMEOUT 10 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 720 \
OK ATM1 \
OK ATDT$TELEPHONE \
CONNECT '' \
name:--name: $ACCOUNT \
assword: $PASSWORD \
tion: $CHOICE
=====================================================================
My ppp/options file:
-detach
0.0.0.0:
modem
lock
crtscts
defaultroute
asyncmap 0
mtu 552
mru 552
======================================
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]