*BSD News Article 36162


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!miff
From: miff@apanix.apana.org.au (Michael Smith)
Newsgroups: comp.os.386bsd.questions
Subject: Re: SLIP problem
Date: 26 Sep 94 09:51:29 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 50
Message-ID: <miff.780573089@apanix.apana.org.au>
References: <35pg52$b7k@umd5.umd.edu>
NNTP-Posting-Host: seldon.apanix.apana.org.au
Keywords: slip,help

leonard@sa4server.umd.edu (Leonard Nisenoff) writes:


>I'm having problems getting slip to run correctly.  The connection is
>made and lasts for about 10 seconds, then dies.  I do the following:

>1. Establish the modem link using Kermit, then escape back to my pc.
>2. "slattach /dev/tty00"

Ok. the slattach line I use is  -a -h -s 38400 tty01

>3. "ifconfig sl0 inet <clientIP> <serverIP> netmask 255.255.255.0

Use names, it's easier to remember.

>4. "route add 131.118.0.0 <serverIP>
>5. "route add default <serverIP> 

You don't need 4 if you have 5, everything will be passed off to it anyway.
Also, you'll get a net route for the serverIP address entered when you
start the interface.

I've had strange results acting as a gateway if I don't ifconfig the gateway
and set the default route _before_ I bring up any other interfaces.

>I can finger and sometimes I can telnet, but things seem to die quickly.
>I've tried using rts/cts and no flow control, but it still dies. 

What happens when it dies? Slattach drops out, or transmission stops, or what?

>--Leonard (leonard@sa4server.umd.edu)

For the knowledgeable SLIPpers reading this : 

I've been experimenting with automgically healing SLIP links, with some
serious problems :

if you use slattach -r <redialcommand>, the redial command is run with the
serial interface still in the SLIP line discipline.

if you use slattach -f, with no -r, it _won't_ exit when it loses carrier.

I know I have the source, I'd just like to know if this has been done
over already.

--
# mike smith : miff@apanix.apana.org.au - Silicon grease monkey        #
# "The question 'why are the fundamental laws of nature mathematical'  #
# then invites the trivial response 'because we define as fundamental  #
# those laws which are mathematical'". Paul Davies, _The_Mind_of_God_. #