On Wednesday 22 November 2000 13:19, you wrote:
> Balaji Ramani wrote:
> > Try increasing the timeout in the chat script. The problem might be that
> > the timeout might be too small for chat to complete the serial
> > connection.
>
> What value might I try? I think it was at 40 or something... can you
> give me exact syntax?
>
> Thanks,
>
> -Stephen-
I had pppd working in 7.1. Never tried it on 7.2 as I moved to DSL. But
here are the necessary file that I used. Hope it helps you.
The timeout for the chat script is given by the line TIMEOUT <value>.
Initially we use a timeout of 3 seconds and later switch to a 45 seconds
timeout for the modem to connect to the other end.
Balaji
------------------------------------------
/etc/ppp/ppp-on-dialer:
--- cut here ---
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
ABORT '\nNO DIAL TONE\r' \
'' \rAT \
'OK-+++\c-OK' ATZ \
TIMEOUT 45 \
OK ATM0DT*70,$TELEPHONE \
CONNECT ''
--- cut here ---
/etc/ppp/options:
--- cut here ---
name YOUR_ISP_LOGIN_NAME
--- cut here ---
/etc/ppp/pap-secrets:
--- cut here ---
# Secrets for authentication using PAP
# client server secret IP addresses
YOUR_ISP_LOGIN_NAME * YOUR_ISP_PASSWORD
--- cut here ---
/usr/sbin/ppp-on:
--- cut here ---
#!/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=555-1212 # The telephone number for the connection
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock -chap modem crtscts /dev/modem 115200 \
netmask $NETMASK defaultroute connect $DIALER_SCRIPT
--- cut here ---
Keep in touch with http://mandrakeforum.com:
Subscribe the "[EMAIL PROTECTED]" mailing list.