From: savages@prism.CS.ORST.EDU (Shaun Savage) Subject: How to slip up to SLIP Date: 28 Jun 1993 13:04:01 GMT
I have gotten SLIP to work now. I was starting from no u*ix knowledge. Here are
some hints to get it working.
1) DON'T ifconfig or route any SLIP before it connected.
2) use "dip" to dial and access the slip line. below is an example script
main:
remote 128.128.128.1 #The ip address of the host system
local 128.1.1.1 # The ip address given to you
port modem
speed 19200
reset
dial 5551212 # dial the number
wait CONNECT 60 #wait for connect
if $errlvl != 0 goto error
wait OSUETS 10 #wait for OSUETS, my host prompt
if $errlvl != 0 goto error
sleep 3
send slip\n # say we want a slip connection
if $errlvl != 0 goto error
wait sername 20 # wait for Username prompt
if $errlvl != 0 goto error
sleep 3
send savages\n # send user name
if $errlvl != 0 goto error
wait assword 20 # wait for Password prompt
if $errlvl != 0 goto error
sleep 3
send foo\n # send password
if $errlvl != 0 goto error
wait address 10 # the host send the addresses
if $errlvl != 0 goto error
sleep 3
mode SLIP #slip into slip
if $errlvl != 0 goto error
wait 30
goto exit
error:
exit:
exit
3) I am now connected to slip What do I do?
4) I now can setup the routes to the name server and default
> route add nameserver gw remote # the remote is the IP address above
> cp /etc/resolv.conf.slip /etc/resolv.conf # this allows pointer to ns
> route add default gw remote
5) ping to the remote IP
6) now telnet, ftp, mail, etc....
Notes:
in rc.local copy a boot resolv.conf to that file, if you don't SLOW boot
in rc.inet1 make sure to set the netmask to 255.255.255.0 or what ever
but make sure you dont forget because you will have all routes go to
loopback if you configed it.
I have /dev/modem linked to /dev/cau0
I hope this helped
Shaun Savage
savages@prism.cs.orst.edu