Solved

Linux -> ISP using Ascend Max 200 w/ unidirectional PAP

Posted on 1997-12-15
4
264 Views
Last Modified: 2010-03-18
Hi,

My ISP has an Ascend MAX 200 using unidirectional PAP.

I got the PPPSetup script, which helped me set up my files, but I still
can't get a valid connection established.

I've included the log files below.

I'd appreciate any suggestions.

---

Dec  1 16:14:49 localhost pppd[444]: pppd 2.2.0 started by root, uid 0
Dec  1 16:14:50 localhost chat[448]: timeout set to 30 seconds
Dec  1 16:14:50 localhost chat[448]: abort on (ERROR)
Dec  1 16:14:50 localhost chat[448]: abort on (BUSY)
Dec  1 16:14:50 localhost chat[448]: abort on (NO CARRIER)
Dec  1 16:14:50 localhost chat[448]: abort on (NO DIALTONE)
Dec  1 16:14:50 localhost chat[448]: report (CARRIER)
Dec  1 16:14:50 localhost chat[448]: report (CONNECT)
Dec  1 16:14:50 localhost chat[448]: send (AT^M)
Dec  1 16:14:50 localhost chat[448]: expect (OK)
Dec  1 16:15:09 localhost chat[448]: AT^M^M
Dec  1 16:15:09 localhost chat[448]: OK -- got it
Dec  1 16:15:09 localhost chat[448]: send (ATZ^M)
Dec  1 16:15:09 localhost chat[448]: expect (OK)
Dec  1 16:15:09 localhost chat[448]: ^M
Dec  1 16:15:29 localhost chat[448]: ATZ^M^M
Dec  1 16:15:29 localhost chat[448]: OK -- got it
Dec  1 16:15:29 localhost chat[448]: send (atdt8298888^M)
Dec  1 16:15:29 localhost chat[448]: timeout set to 60 seconds
Dec  1 16:15:29 localhost chat[448]: expect (CONNECT)
Dec  1 16:15:29 localhost chat[448]: ^M
Dec  1 16:16:09 localhost chat[448]: atdt8298888^M
Dec  1 16:16:09 localhost chat[448]: CONNECT -- got it
Dec  1 16:16:49 localhost pppd[444]: Serial connection established.
Dec  1 16:16:50 localhost pppd[444]: Using interface ppp0
Dec  1 16:16:50 localhost pppd[444]: Connect: ppp0 <--> /dev/modem
Dec  1 16:16:50 localhost pppd[444]: sent [LCP ConfReq id=0x1 <mru 1524>
<asyncmap 0xa0000> <magic 0xb07c9858> <pcomp> <accomp>]
Dec  1 16:17:23 localhost last message repeated 11 times
Dec  1 16:18:17 localhost last message repeated 18 times
Dec  1 16:18:20 localhost pppd[444]: LCP: timeout sending
Config-Requests
Dec  1 16:18:20 localhost pppd[444]: Connection terminated.

----

Dec  1 16:14:49 localhost pppd[444]: pppd 2.2.0 started by root, uid 0
Dec  1 16:14:50 localhost chat[448]: timeout set to 30 seconds
Dec  1 16:14:50 localhost chat[448]: abort on (ERROR)
Dec  1 16:14:50 localhost chat[448]: abort on (BUSY)
Dec  1 16:14:50 localhost chat[448]: abort on (NO CARRIER)
Dec  1 16:14:50 localhost chat[448]: abort on (NO DIALTONE)
Dec  1 16:14:50 localhost chat[448]: report (CARRIER)
Dec  1 16:14:50 localhost chat[448]: report (CONNECT)
Dec  1 16:14:50 localhost chat[448]: send (AT^M)
Dec  1 16:14:50 localhost chat[448]: expect (OK)
Dec  1 16:15:09 localhost chat[448]: AT^M^M
Dec  1 16:15:09 localhost chat[448]: OK -- got it
Dec  1 16:15:09 localhost chat[448]: send (ATZ^M)
Dec  1 16:15:09 localhost chat[448]: expect (OK)
Dec  1 16:15:09 localhost chat[448]: ^M
Dec  1 16:15:29 localhost chat[448]: ATZ^M^M
Dec  1 16:15:29 localhost chat[448]: OK -- got it
Dec  1 16:15:29 localhost chat[448]: send (atdt8298888^M)
Dec  1 16:15:29 localhost chat[448]: timeout set to 60 seconds
Dec  1 16:15:29 localhost chat[448]: expect (CONNECT)
Dec  1 16:15:29 localhost chat[448]: ^M
Dec  1 16:16:09 localhost chat[448]: atdt8298888^M
Dec  1 16:16:09 localhost chat[448]: CONNECT -- got it
Dec  1 16:16:49 localhost pppd[444]: Serial connection established.
Dec  1 16:16:50 localhost pppd[444]: Using interface ppp0
Dec  1 16:16:50 localhost pppd[444]: Connect: ppp0 <--> /dev/modem
Dec  1 16:18:20 localhost pppd[444]: LCP: timeout sending
Config-Requests
Dec  1 16:18:20 localhost pppd[444]: Connection terminated.

----

Dec  1 16:14:49 localhost kernel: CSLIP: code copyright 1989 Regents of
the University of California
Dec  1 16:14:49 localhost kernel: PPP: version 2.2.0 (dynamic channel
allocation)
Dec  1 16:14:49 localhost kernel: PPP Dynamic channel allocation code
copyright 1995 Caldera, Inc.
Dec  1 16:14:49 localhost kernel: PPP line discipline registered.
Dec  1 16:14:49 localhost kernel: registered device ppp0
Dec  1 16:14:49 localhost pppd[444]: pppd 2.2.0 started by root, uid 0
Dec  1 16:14:50 localhost chat[448]: timeout set to 30 seconds
Dec  1 16:14:50 localhost chat[448]: abort on (ERROR)
Dec  1 16:14:50 localhost chat[448]: abort on (BUSY)
Dec  1 16:14:50 localhost chat[448]: abort on (NO CARRIER)
Dec  1 16:14:50 localhost chat[448]: abort on (NO DIALTONE)
Dec  1 16:14:50 localhost chat[448]: report (CARRIER)
Dec  1 16:14:50 localhost chat[448]: report (CONNECT)
Dec  1 16:14:50 localhost chat[448]: send (AT^M)
Dec  1 16:14:50 localhost chat[448]: expect (OK)
Dec  1 16:14:51 localhost innd[375]: s
Dec  1 16:15:09 localhost chat[448]: AT^M^M
Dec  1 16:15:09 localhost chat[448]: OK -- got it
Dec  1 16:15:09 localhost chat[448]: send (ATZ^M)
Dec  1 16:15:09 localhost chat[448]: expect (OK)
Dec  1 16:15:09 localhost chat[448]: ^M
Dec  1 16:15:29 localhost chat[448]: ATZ^M^M
Dec  1 16:15:29 localhost chat[448]: OK -- got it
Dec  1 16:15:29 localhost chat[448]: send (atdt8298888^M)
Dec  1 16:15:29 localhost chat[448]: timeout set to 60 seconds
Dec  1 16:15:29 localhost chat[448]: expect (CONNECT)
Dec  1 16:15:29 localhost chat[448]: ^M
Dec  1 16:15:31 localhost PAM_pwdb[394]: (login) session opened for user
root by root(uid=0)
Dec  1 16:15:31 localhost syslog: ROOT LOGIN ON tty2
Dec  1 16:16:09 localhost chat[448]: atdt8298888^M
Dec  1 16:16:09 localhost chat[448]: CONNECT -- got it
Dec  1 16:16:49 localhost kernel: PPP: ppp line discipline successfully
unregistered
Dec  1 16:16:49 localhost pppd[444]: Serial connection established.
Dec  1 16:16:50 localhost kernel: PPP: version 2.2.0 (dynamic channel
allocation)
Dec  1 16:16:50 localhost kernel: PPP Dynamic channel allocation code
copyright 1995 Caldera, Inc.
Dec  1 16:16:50 localhost kernel: PPP line discipline registered.
Dec  1 16:16:50 localhost kernel: registered device ppp0
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set flags to 70000
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set flags to 70000
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set xasyncmap
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set xmit asyncmap
ffffffff
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set flags to 70000
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set mru to 5dc
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set rcv asyncmap 0
Dec  1 16:16:50 localhost kernel: ppp_tty_ioctl: set flags to 70010
Dec  1 16:16:50 localhost pppd[444]: Using interface ppp0
Dec  1 16:16:50 localhost pppd[444]: Connect: ppp0 <--> /dev/modem
Dec  1 16:18:20 localhost pppd[444]: LCP: timeout sending
Config-Requests
Dec  1 16:18:20 localhost pppd[444]: Connection terminated.
Dec  1 16:18:20 localhost kernel: ppp_tty_ioctl: get debug level 7
Dec  1 16:18:20 localhost kernel: ppp_tty_ioctl: set flags to f000010
Dec  1 16:18:34 localhost kernel: Swansea University Computer Society
IPX 0.34 for NET3.035
Dec  1 16:18:34 localhost kernel: IPX Portions Copyright (c) 1995
Caldera, Inc.
Dec  1 16:18:34 localhost kernel: Appletalk 0.17 for Linux NET3.035


0
Comment
Question by:rben
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:unicorntech
ID: 1587194
Can you leave a copy of the connection script you are using for me to look at?

Regards,

Jason
0
 

Author Comment

by:rben
ID: 1587195
Here's the connection script:

#!/bin/bash

if [ "$1" = "-h" ]; then
echo "USAGE: ppp-go     <Connect print messages to screen.>"
echo "USAGE: ppp-go -c  <Remove contents of /var/log/pppd files.>"
echo "USAGE: ppp-go -cc <Remove contents of /var/log/messages & debug files.>"
echo "USAGE: ppp-go -d  <Put pppd in demand dialing mode.>"
echo "USAGE: ppp-go -h  <help>"
echo "USAGE: ppp-go -s Nseconds <Connect do not print messages to screen.>"
echo "USAGE: ppp-go -s 50       <Put any Number of seconds.>"
exit
fi

if [ "$1" = "-c" ]; then
cat /dev/null >/var/log/pppd.chat.log >/var/log/pppd.debug.log
echo "Contents of /var/log/pppd files removed."
exit
fi

if [ "$1" = "-cc" ]; then
cat /dev/null >/var/log/messages >/var/log/debug
echo "Contents of /var/log/messages & debug files removed."
exit
fi

if [ "$1" = "-d" ]; then
kill -9 2>/dev/null `cat /var/run/ppp*.pid 2>/dev/null`
rm -f /var/spool/uucp/LCK* /var/lock/LCK* /var/run/ppp*.pid
/usr/sbin/pppd file "/etc/ppp/options.demand" || exit 1
echo "Demand Dialing Started..."
if [ -s /var/log/pppd.chat.log ]; then
sleep 2
tail -n 4 /var/log/pppd.chat.log
exit
else
exit
fi
fi

if [ "$1" = "" ]; then
kill -9 2>/dev/null `cat /var/run/ppp*.pid 2>/dev/null`
rm -f /var/spool/uucp/LCK* /var/lock/LCK* /var/run/ppp*.pid
/usr/sbin/pppd connect "/usr/sbin/chat -v -f /etc/ppp/pppscript"

if [ -f /var/log/pppd.chat.log ]; then
killall -9 tail 2>/dev/null
tail -c 0 -f /var/log/pppd.chat.log &
read && killall -9 tail 2>/dev/null
fi

if ifconfig | grep P-t-P >/dev/null ; then
echo
echo "* YES! connected... *"
echo
exit
else
echo
echo "* NO! not connected... *"
echo
exit
fi
fi

if [ "$1" = "-s" ]; then
if [ ! "$2" = "" ]; then
kill -9 2>/dev/null `cat /var/run/ppp*.pid 2>/dev/null`
rm -f /var/spool/uucp/LCK* /var/lock/LCK* /var/run/ppp*.pid
/usr/sbin/pppd connect "/usr/sbin/chat -v -f /etc/ppp/pppscript"
echo "Waiting "$2" seconds to connect..."
sleep "$2" || kill -9 2>/dev/null `cat /var/run/ppp*.pid 2>/dev/null`
else
echo "USAGE: ppp-go -s Nseconds"
exit 1
fi
fi

if [ "$?" = "0" ]; then
if ifconfig | grep P-t-P >/dev/null &&
[ -s /etc/ppp/connect-errors ]; then
echo
echo "* YES! connected... *"
if ! grep "connect-errors" /etc/ppp/connect-errors >/dev/null
then
tail -n 1 /etc/ppp/connect-errors
echo
exit
else
tail -n 2 /etc/ppp/connect-errors
echo
exit
fi
fi

if ifconfig | grep P-t-P >/dev/null ; then
echo
echo "* YES! connected... *"
echo
exit
else
echo
echo "* NO! not connected... *"
echo
exit
fi
fi

---
The options file:

lock
defaultroute
noipdefault
modem
/dev/modem
115200
kdebug 15
lcp-max-configure 30
crtscts
debug
kdebug 7
name "xxxxx"

----
chatscript:

"" ATZ
OK ATDT8298888
ABORT "NO CARRIER"
ABORT BUSY
ABORT "NO DIALTONE"
ABORT WAITING
CONNECT ""

0
 
LVL 4

Accepted Solution

by:
unicorntech earned 200 total points
ID: 1587196
Try using the following as a script:

pppd defaultroute /dev/modem connect 'chat ""ATDT8298888 ogin: username word: password any_other_commands_to_verify_user'

Put this in a file called dial_up and make it executable. Then try running the script. Let me know how you go,

Regards,

Jason Sinclair
0
 

Author Comment

by:rben
ID: 1587197
Actually, I found that the problem was that I was using a plug and play modem and IRQ 11 was being used on COM3 rather than IRQ 4.  Once I used setserial to change the IRQ, everything worked ok.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now