Date: Mon, 7 Sep 1998 15:59:31 -0400 (EDT) From: dave@gregory.dyn.ml.org To: questions@FreeBSD.ORG Subject: Kernel ppp - LCP: timeout sending Config-Requests Message-ID: <Pine.LNX.3.96.980907145451.17040A-100000@gregory.dyn.ml.org>
next in thread | raw e-mail | index | archive | help
Hi,
I just changed ISP's, and their login works something like this:
Username:
Password:
Welcome....blah, blah, blah Please choose from one of the
following menu choices:
1 Initiate a PPP connection
2 Initiate a SLIP connection
(Ok, I hit a 1 with no return.....)
IP address or hostname:
( I enter 'default' <enter> and it seems to go into ppp mode ok )
The above was done on a test dial with kermit so I never real get into ppp
mode - when I use scripts that have always worked before, slighty modified
to account for the new login, ppp gives me LCP: timeout sending
Config-Requests.
ppp.log:
Sep 7 15:07:13 webdog pppd[24670]: pppd 2.3.5 started by hounddog, uid 0
Sep 7 15:07:41 webdog pppd[24670]: Serial connection established.
Sep 7 15:07:42 webdog pppd[24670]: Using interface ppp0
Sep 7 15:07:42 webdog pppd[24670]: Connect: ppp0 <--> /dev/cuaa1
Sep 7 15:07:42 webdog pppd[24670]: sent [LCP ConfReq id=0x1 <magic
0x6c8b7b56> <pcomp> <accomp>]
Sep 7 15:08:09 webdog last message repeated 9 times
Sep 7 15:08:12 webdog pppd[24670]: LCP: timeout sending Config-Requests
chat.log:
Sep 7 15:07:14 chat[24673]: abort on (BUSY)
Sep 7 15:07:14 chat[24673]: abort on (NO CARRIER)
Sep 7 15:07:14 chat[24673]: send (AT^M)
Sep 7 15:07:14 chat[24673]: expect (OK)
Sep 7 15:07:15 chat[24673]: AT^M^M
Sep 7 15:07:15 chat[24673]: OK
Sep 7 15:07:15 chat[24673]: -- got it
Sep 7 15:07:15 chat[24673]: send (ATDTXXXXXXX^M)
Sep 7 15:07:15 chat[24673]: expect (CONNECT)
Sep 7 15:07:15 chat[24673]: ^M
Sep 7 15:07:35 chat[24673]: ATDTXXXXXXX^M^M
Sep 7 15:07:35 chat[24673]: CONNECT
Sep 7 15:07:35 chat[24673]: -- got it
Sep 7 15:07:35 chat[24673]: send (^M)
Sep 7 15:07:35 chat[24673]: timeout set to 10 seconds
Sep 7 15:07:35 chat[24673]: expect (sername:)
Sep 7 15:07:35 chat[24673]: 14400 REL/V42BIS^M
Sep 7 15:07:37 chat[24673]: ^M
Sep 7 15:07:37 last message repeated 2 times
Sep 7 15:07:37 chat[24673]: User Access Verification^M
Sep 7 15:07:37 chat[24673]: ^M
Sep 7 15:07:37 chat[24673]: Username:
Sep 7 15:07:37 chat[24673]: -- got it
Sep 7 15:07:37 chat[24673]: send (My_username^M)
Sep 7 15:07:37 chat[24673]: timeout set to 5 seconds
Sep 7 15:07:37 chat[24673]: expect (sword:)
Sep 7 15:07:37 chat[24673]: ^M
Sep 7 15:07:37 chat[24673]: Password:
Sep 7 15:07:37 chat[24673]: -- got it
Sep 7 15:07:37 chat[24673]: send (My_password^M)
Sep 7 15:07:37 chat[24673]: timeout set to 5 seconds
Sep 7 15:07:37 chat[24673]: send (\d\d1^M) <--choice obviously gets
send early
Sep 7 15:07:39 chat[24673]: timeout set to 5 seconds
Sep 7 15:07:39 chat[24673]: expect (stname:)
Sep 7 15:07:39 chat[24673]: ^M
Sep 7 15:07:39 chat[24673]: ^M
Sep 7 15:07:39 chat[24673]: Welcome to X X X . N E T^M
Sep 7 15:07:39 chat[24673]: If you are selecting PPP (1) or SLIP (2),
type default when ^M
Sep 7 15:07:39 chat[24673]: you are asked to enter an IP address or
hostname. Please choose^M
Sep 7 15:07:39 chat[24673]: from one of the following menu choices:^M
Sep 7 15:07:39 chat[24673]: ^M
Sep 7 15:07:39 chat[24673]: 1 Initiate a PPP connection^M
Sep 7 15:07:39 chat[24673]: 2 Initiate a SLIP connection^M
Sep 7 15:07:39 chat[24673]: 3 Login to your shell account^M
Sep 7 15:07:39 chat[24673]: 4 Terminate this session^M
Sep 7 15:07:39 chat[24673]: ^M
Sep 7 15:07:39 chat[24673]: IP address or hostname:
Sep 7 15:07:39 chat[24673]: -- got it
Sep 7 15:07:39 chat[24673]: send (\ddefault^M)
login.chat.script:
ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTXXXXXX0 CONNECT "" TIMEOUT 10
sername:-\\r-sernam: My_username TIMEOUT 5 sword: My_pass TIMEOUT 5 ""
\d\d1 TIMEOUT 5 stname: \ddefault
options:
/dev/cuaa1 38400
crtscts # enable hardware flow control
modem # modem control line
connect "/usr/bin/chat -v -f /etc/ppp/login.chat.script"
noipdefault # remote PPP server must supply your IP address.
# if the remote host doesn't send your IP during
# IPCP negotiation, remove this option
passive # wait for LCP packets
: # put the IP of remote PPP host here
# it will be used to route packets via PPP link
# if you didn't specified the noipdefault option
# change this line to <local_ip>:<remote_ip>
defaultroute # put this if you want that PPP server will be
# your default router
Anyone see something I'm missing? This is my first real attempt at a chat
script, so I'm sure there are mistakes, but it seems as if the chat script
succeeds only to have ppp bomb out at one end or the other.
TIA & peace
Dave
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?Pine.LNX.3.96.980907145451.17040A-100000>
