*BSD News Article 20211


Return to BSD News archive

Newsgroups: comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!news.cerf.net!crash!warelock
From: warelock@crash.cts.com (Tom Zacharoff)
Subject: Re: How do you get slip going?!
Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
Date: 30 Aug 93 12:36:00 PDT
Message-ID: <1993Aug30.123600.23200@crash>
References: <25otdr$h5i@uxa.ecn.bgu.edu>
Lines: 63

mccs3108@uxa.ecn.bgu.edu wrote:
: 
: 
: I want to dialin to from my pc running 386bsd get a slip connection.
: 
: I use tip to dialin to the server.  I type 'slip' and get assigned
: and ip num, now what do I do?   Exit out of tip with ~^Z  and???
: 
: HelP!
: .

Well what you need to have a slip line running is a program called slattach.
There is a man page describing it but here is the basic jist:

For a 2400 baud slip line (with no header compression) on com2:

slattach -s 2400 /dev/com2

This spawns a process that will manage the actual packet passing over the
com port. You now need to configure your routing tables so that your 
system will send packets addressed to the host or anyone else to the slattach
process:

For a host of ip address 192.108.32.1 and your ip address is 192.108.32.2:

ifconfig sl0 inet 192.108.32.2 192.108.32.1

This defines who is on either end of the slip link. Then you need:

route add default 192.108.32.1

This takes all packets you make that are addressed to ANYONE and sends
them to your slip host. For this to work properly you must make sure you
are now running a getty (login for a dialup) on your com port. This is
managed by a config file called /etc/ttys. If there is a line for com2,
just use an editor like vi to add a # to the beginning of that line to
comment it out. Then you either need to do a kill -1 1 to reset the init
process which manages all that getty stuff or just reboot the system and 
do all that ifconfig and route and slattach stuff all over again.

Then try this:

ping 192.108.32.1

You can control-c out of it. Basically it just sends these little "hello"
packets to whatever system you want. If the other system is there and the
network link is working right you will get a responding "hello" packet
back.

One more thing. To be able to use your slip host to access any system on 
the net just by specifying an address from your system you need a file
called /etc/resolv.conf . It goes like this:

domain swc.edu
nameserver 192.108.32.1

Just create it with vi. Substitute your domain name for swc.edu. My system
is altair.cts.com so my domain is cts.com. I haven't found any mention
of this anywhere in a man page. I happened to have a system admin guide
that mentioned it.

Have fun and good luck. If you get stuck, email me.