hi,
i've been having trouble with linux and connecting it to my ISP
through PPP for some times now, and now i'm so close to solving it.
i've configured all the files i know thats needed for ppp connection.
the scripts below i've taken from the ppp-howto but the
'ppp-on-dialer'
dosent work, the modem dosen't seem to repond correctly, it just comes
back with 'alarm' when it should be 'OK -- got it' or something. I
think
my modem is not a winmodem as it dialed before but did not connect to
ISP.
What i did was to make the two scripts below excutable by root them i
ran ppp-on which automaticly ran ppp-on-dialer that's where the
problem
is.
could you take a look at it and tell me what i need to do to make it
work.
muck apercialated!
This is the ppp-on-dialer chat script:
#!/bin/sh
exec /usr/sbin/chat -v \
TIMEOUT 3 \
ABORT BUSY \
ABORT 'NO ANSWER' \
'' ATZ \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD
This is the ppp-on shell script:
#!/bin/sh
#
# Script to initiate a PPP connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=12345678 # The telephone number for the connection
ACCOUNT=user # The account name for logon
PASSWORD=password # The password for this account
LOCAL_IP=0.0.0.0 # Local IP address if know. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally
0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
# Export them so that they will be available to 'ppp-on-dialer'
export TELEPHONE ACCOUNT PASSWORD
#
DIALER_SCRIPT=/usr/sbin/ppp-on-dialer
# Initiate the connection
exec /usr/sbin/pppd debug /dev/ttyS2 38400 \
$LOCAL_IP:$REMOTE_IP \
connect $DIALER_SCRIPT
This is result from the syslog (/var/log/messages):
Dec 21 01:07:51 earth kernel: PPP: version 2.2.0 (dynamic channel
allocation)
Dec 21 01:07:51 earth kernel: PPP Dynamic channel allocation code
copyright 1995 Caldera, Inc.
Dec 21 01:07:51 earth kernel: PPP line discipline registered.
Dec 21 01:07:51 earth kernel: registered device ppp0
Dec 21 01:07:54 earth pppd[255]: pppd 2.2.0 started by root, uid 0
Dec 21 01:07:56 earth chat[258]: timeout set to 3 seconds
Dec 21 01:07:56 earth chat[258]: abort on (BUSY)
Dec 21 01:07:56 earth chat[258]: abort on (NO ANSWER)
Dec 21 01:07:56 earth chat[258]: send (ATZ^M)
Dec 21 01:07:56 earth chat[258]: expect (OK)
Dec 21 01:07:59 earth chat[258]: alarm ( This is
beginning of the problem, it
should read ... [...]: OK -- got it, i think it might have something
to do with my serial
setting for the modem or something 'cos i checked the chat script
(ppp-on-dialer) over and
over again and it seemed perfectly ok acording to the man page on
chat.)
Dec 21 01:07:59 earth chat[258]: send (+++)
Dec 21 01:07:59 earth chat[258]: expect (OK)
Dec 21 01:08:02 earth chat[258]: alarm
Dec 21 01:08:02 earth pppd[255]: Connect script failed
Dec 21 01:08:02 earth chat[258]: Failed
Dec 21 01:08:04 earth pppd[255]: Exit.
Dec 21 01:09:47 earth kernel: PPP: ppp line discipline successfully
unregistered
from
chris