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

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


rbenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

unicorntechCommented:
Can you leave a copy of the connection script you are using for me to look at?

Regards,

Jason
0
rbenAuthor Commented:
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
unicorntechCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rbenAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.