*BSD News Article 39905


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!otis.apana.org.au!serval.net.wsu.edu!news.clark.edu!spool.mu.edu!uwm.edu!reuter.cse.ogi.edu!engr.orst.edu!gaia.ucs.orst.edu!OES.ORST.EDU!millerj
From: millerj@OES.ORST.EDU (James Miller)
Newsgroups: comp.os.386bsd.questions
Subject: Re: SLIP problems
Date: 22 Dec 1994 01:24:26 GMT
Organization: Oregon Extension Service
Lines: 69
Message-ID: <3dakga$qes@gaia.ucs.orst.edu>
References: <umar.22.00103456@tiac.net>
NNTP-Posting-Host: oes.orst.edu

In article <umar.22.00103456@tiac.net>, Rob Landry <umar@tiac.net> wrote:
>I'm a newcomer to NetBSD and am trying to get my computer to do SLIP.  I've 
>read the FAQ section on SLIP but found it not very helpful.  To begin with 
>NetBSD doesn't seem to recognize my internal modem.  Fine, I said to myself, 
>and borrowed an external modem from work to plug into com2 (which the FAQ says 
>is really tty01).
>
>The shell script in the FAQ doesn't work; it contains a reference to 'fix-cua' 
>which isn't present on my system and isn't described in the FAQ.
>
>tip and cu will not talk to the modem at all.
>
>To top it all off, after setting up the /etc/hosts file I find that when I 
>reboot I get a message that says 'network is down' that repeats every 10 
>minutes or so.
>
>Got any ideas?

Well, I have a couple....

First internal modems are a pain in the ass.  I have an internal and an external... the internal has caused excessive drinking but now works.

Make sure your /dev/tty01 entry in /etc/ttys is off.

It take three parts to get my SLIP connection working.

1.  This script :

*adjust tty00 to whatever you need all the way through the 3 parts.

#!/bin/csh -f
stty -f /dev/tty00 clocal
kermit -l /dev/tty00 -b 38400

2.  That script will throw you into kermit.  ( I could not get tip or cu to work either)  Yes kermit is not installed most likely.  Go get it and install.. it is easy.  Adjust the script as needed to fit your login situation.

In kermit:
output atz\13		*init the modem
output at&d0\13		*tell modem don't hang the line up when I quit kermit
			*that command may vary modem to modem... I have a zoom
			*and a supra and it works on both. :)
output atdt5551212\13	*dial the phone
input 45 login:		*show input 'til you see the login
output username\13	*obvious
output password\13	*ditto
input 1 oof		*no words match oof for me... it will show all of the 
			*text that has come in after the password
quit			*get the hell out of kermit

3.  Then this script:

#!/bin/csh -f
ifconfig sl0 inet 199.2.205.31  199.2.205.253  metric 1
* 199.2.205.31 is my local IP  199.2.205.253 is connecting IP
route add default 199.2.205.254
* 199.2.205.254 is IP for the defalut router... some cases this is the same
* as the connecting IP
slattach /dev/tty00 19200
*serial link tty00 at 19200
ifconfig sl0 up
*turn slip on
echo "done"
*cheer


That's it! :)

-James
millerj@oes.orst.edu