: >
: >> I noticed that this was asked in the thread, but have you solved the problem
: >> yet? I have an almost identical problem. Maybe it's 1.2.7 at fault!
: >> Thanx for anything you can pass on,
: >> JEREMY.
: >
: >No, I haven't solved it. Unfortunately, no one seems to know how to fix
: >this (or they're not telling!) It's not the kernel, because I've had the
: >same problems with 1.2.1, 1.2.5, and 1.2.8.
: >
: >Steve
: I never saw the original post, but this is how I SLIP my way in using DIP:
I never say the original post either, but here is a good sample slip.
At least it's a good script for me and my service provider. Maybe it will
be good for you too.
#
# sample.dip Dialup IP connection support program.
# This file (should show) shows how to use the DIP
# scripting commands to establish a link to a host.
# This host runs the 386bsd operating system, and
# thus can only be used for the "static" addresses.
#
# NOTE: We also need an examnple of a script used to connect
# to a "dynamic" SLIP server, like an Annex terminal
# server...
#
#
#
main:
# First of all, set up our name for this connection.
# I am called "crunix.cris.com" (== 192.0.2.1)
# Change to your local IP or HOSTNAME.
get $local LOCALHOSTNAME
# Next, set up the other side's name and address.
# My dialin machine is called "cris.com" (== 199.3.12.2)
# Change to your remote servers IP or HOSTNAME.
get $remote REMOTEHOSTNAME
# Set netmask on sl0 to 255.255.255.0
# Change to your networks netmask
netmask 255.255.255.0
# Set the desired serial port and speed.
# Of course use your appropriate port and desired speed.
port cua1
speed 38400
# Reset the modem and terminal line.
# This seems to cause trouble for some people!
# If it causes problems for you, change to:
# send ATZ\r
# or if you still have problems, comment it out
# all together.
reset
# Note! "Standard" pre-defined "errlevel" values:
# 0 - OK
# 1 - CONNECT
# 2 - ERROR
#
# You can change those grep'ping for "addchat()" in *.c...
# Prepare for dialing.
# These are for Practical Peripherals and other Hayes
# compatible modems. If yours is non-standard, or
# something else ie. USR and so on, consult your
# modem manual for proper settings for:
# Q0 == return result codes
# E1 == local echo on
# V1 == return result codes in
# words rather than numbers
# X4 == full call progress reporting
# &C1 = force DCD to track state of remote modems
# carrier
# &D2 = force local modem to hangup, disable auto-answer,
# and return to command mode on DTR
# M0 == turn off speaker (just personal preference)
# S7/S11 = personal choices for wait for carrier and tone dialing
# speed, set these to what you think are needed, or
# not at all. It's up to you.
#
send ATQ0V1E1X4&C1&D2M0S7=50S11=50\r
wait OK 3
if $errlvl != 0 goto modem_trouble
# Dial your local site. 't' is added in front of number because
# DIP defaults to ATD on 'dial' which in turn defaults to
# pulse dial on some systems, so 't' tells it to use tone dialing.
dial t+YOURLOCALACCESSNUMBER
if $errlvl != 1 goto modem_trouble
# We are connected. Login to the system.
login:
sleep 2
# Wait for user/login prompt. Change to whatever your local site
# prompts with.
wait PROMPT 20
if $errlvl != 0 goto login_error
# Send login name. Change to your login.
send LOGINNAME\n
# Wait for password prompt.
wait ssword: 20
if $errlvl != 0 goto password_error
# Send password. Change to your password.
send PASSWORD\n
loggedin:
######################################################################
# Some systems allow you to login with something like: #
# If so, change the above login process to that, and then the #
# the next part works, otherwise start your term emulater and #
# start the remote SLIP application and exit your terminal, then #
# do a ^] to and you should be connected via SLIP. #
######################################################################
# If you have to manually start SLIP on the remote host as
# described above, remove the following lines down to the
# error/trouble sections.
# We are now logged in.
wait SLIP 15
if $errlvl != 0 goto prompt_error
# Set up the SLIP operating parameters.
get $mtu 296
# Ensure "route add -net default xs4all.hacktic.nl" will be done
default
# Say hello and fire up!
done:
print CONNECTED $locip ---> $rmtip
mode SLIP
goto exit
prompt_error:
print TIME-OUT waiting for SLIPlogin 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 ocurred with the modem...
error:
print CONNECT FAILED to $remote
quit
exit:
exit