*BSD News Article 54011


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!spool.mu.edu!sol.ctr.columbia.edu!news.uoregon.edu!news.emf.net!overload.lbl.gov!lll-winken.llnl.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!usenet
From: Jon Jenkins <jenkinsj@ozy.dec.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help wanted for writing SLIP/PPP modem connection script
Date: 6 Nov 1995 11:00:42 GMT
Organization: Digital Equipment Corp
Lines: 42
Message-ID: <47kpsq$2o7@nntpd.lkg.dec.com>
References: <478sni$g9c@aldebaran.sct.fr>
NNTP-Posting-Host: ozyd13-p3.ozy.dec.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
X-URL: news:478sni$g9c@aldebaran.sct.fr

This is what I run after manually logging
in. I could use a auto script but 
I find it easier to do it manually.
The command line is something like:

start.slip 3 256


-----------------------------
echo "Clearing routes"
route -q flush
echo "Clearing ifnets"
ifconfig sl0 delete
ifconfig sl1 delete
echo "setting hostname"
hostname ozyd13-p$1.ozy.dec.com
echo "attach sl0 to /dev/ttyd1"
slattach -a -s 57600 -h /dev/ttyd1
echo "configuring sl0"
ifconfig sl0 inet ozyd13-p$1 mtu $2 compress up
echo "adding default"
route add default 16.153.192.20$1
#echo "adding local loop"
route add -host 16.153.192.20$1 127.0.0.1
echo "netstats"
netstat -r
netstat -i
echo "ifconfig"
ifconfig sl0
xhost +
echo "starting sendmail"
sendmail -bd -q30m

-- 
----------------------------------------------------------------------
Name:      Dr Jon Jenkins    Location: Digital Equipment Corporation NaC
Voice/Fax: 61-7-55-75-0151/100         Burnett Place, Research Park,  
Inet:      jenkinsj@ozy.dec.com        Bond University, Gold Coast
Close Proximity: "HEY YOU !!!"         QLD, AUSTRALIA 4229
"Daddy, what's outside the Universe?" (My 5 year old.....)
-----------------------------------------------------------------------