[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PPP-ON script?
><Sigh> It's me again, people.
>I have been able to successfully connect my 57.6k
>line driver to my computer (I'm using it now to
>call into my ISP through minicom).
>However ,I cannot, for the life of me, get my
>ppp-on-dialer script to execute.
>I'm going through Western Michigan University's
>Merit/Michnet dialin. It just won't do the
>trick.
>The ppp-on will fire up the script, but it won't
>tell me where it's failing.
>The files in /etc/ppp for net connection were
>called 'ip-up' and 'ip-down'. They didn't match
>anything on the RedHat site. I'm assuming
>that it's alright to use another filename
>to fire up PPP (i.e., ppp-on, which in turn
>executes ppp-on-dialer).
>If it helps, I can provide you with my
>ppp-on file (and the ppp-on-dialer).
>And, of course, I can provide you with
>the Merit/Michnet dialin # in case you don't
>have it. I'm running Linux Red Hat 5.0
>(at least that's what the CD told me - no manual!)
>Oh - btw - what would the ppp-off script look like?
>My system doesnt' have anything that resembles
>a ppp-off. The ip-off is very....well...nonsensical!
I use a program called "dip", which is included in the
Red Hat distribution. Please read the man page, or install
the package if it is not on your system. I have attached
the script that I use (w/o my own info, of course!) so you
can try it. I do not guarantee it will work, since I don't
know the details of the Merit/Michnet network. This has very
good diagnostics, so you may be able to use this (and dip) to
figure out what your problem is, then adjust things in your
other scripts.
I'm sure others have other ways of connecting; this is not
any more (or less) "right", but I offer it because it may help.
We look forward to seeing you at a meeting, perhaps.
Regards,
---> RGB <---
#
# sample.dip Dialup IP connection supportam.
#
# Version: @(#)sample.dip 1.40 07/20/93
#
# Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
#
main:
# First of all, set up our name for this connection.
get $local flubber.ext
# Next, set up the other side's name and address.
get $remote {YOUR ISP SERVER}
# Set netmask on sl0 to 255.255.255.0
netmask 255.255.255.0
# Set the desired serial port and speed.
port cua1
speed 57600
# Reset the modem and terminal line.
# This seems to cause trouble for some people!
reset
# Note! "Standard" pre-defined "errlvl" values:
# 0 - OK
# 1 CONNECT
# 2 - ERROR
# 3 - BUSY
# 4 - NO CARRIER
# 5 - NO DIALTONE
#
# You can change these with the chatkey command
# Prepare for dialing.
send ATQ0V1E1X4\r
# send AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0\r
wait OK 2
if $errlvl != 0 goto modem_trouble
dial 382-2995
if $errlvl != 1 goto dial_trouble
# We are connected. Login to the system.
login:
print connecting
sleep 2
# send \r\n\r\n
wait ogin: 20
if $errlvl != 0 goto login_error
send {USER ID}\n
wait ord: 20
if $errlvl != 0 goto password_error
send {PASSWORD}\n
loggedin:
# We are now logged in.
wait PPP 15
if $errlvl != 0 goto prompt_error
# Set up the SLIP operating parameters.
# get $mtu 296
# Ensure "route add -net default $remote" will be done
default
# Say hello and fire up!
done:
mode PPP
print CONNECTED
goto exit
prompt_error:
print TIME-OUT waiting for PPPlogin to fire up...
goto error
login_trouble:
print Trouble waiting for the Login: prompt...
goto error
password_error:
print Trouble waiting for the Password: prompt...
goto error
modem_trouble:
print Trouble occurred with the modem...
goto error
dial_trouble:
print Trouble occurred dialing the modem...
goto error
error:
print CONNECT FAILED to $remote
quit 1
exit:
print EXIT...
# exit