*BSD News Article 32397


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!ddsw1!not-for-mail
From: jal@MCS.COM (John A. LaCour III)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD 1.1.5R  SLIP problems & misc.
Followup-To: poster
Date: 3 Jul 1994 21:25:44 -0500
Organization: /usr/lib/news/organi[sz]ation
Lines: 38
Message-ID: <2v7rv8$7gs@Mercury.mcs.com>
References: <2v75qi$n4k@venus.mcs.com>
NNTP-Posting-Host: mercury.mcs.com

In article <2v75qi$n4k@venus.mcs.com>, John A. LaCour III <jal@MCS.COM> wrote:
>I've just installed FreeBSD 1.1.5R and have to say it was a very easy install.
>I kept waiting for something to blow up, but there weren't any significant
>problems to be had.  Good job guys!
>
>Unfortunately, I am having some problems getting SLIP working, but I think
>that due to ignorance on my part more than anything else.

Okay, I figured it out.  I thought I would share it in case it will help
someone else.

I wrote 2 shell scripts start.slip and stop.slip:

start.slip
----------
kermit
ifconfig sl0 inet <my-ip-addr> <termserver/gateway-ip-addr>
slattach -c -h -s 115200 /dev/tty01    # -c VJ compression -h rts/cts
route add -net 0 <termsrvr/gateway-ip-addr>

stop.slip
---------
kill -INT `ps -aux | grep slattach | grep -v grep | cut -c8-15`
ifconfig sl0 down
route flush


A couple of notes:

I have a .kermrc file that has all of the kermit commands to connect
and login etc.  It inits the modem with &D0 to force DTR on the modem
so the connection isn't dropped.

Is the pid of slattach stored somewhere?  The first line in stop.slip
is a convoluted way to get the pid of slattach and kill it.

Regards,
John