*BSD News Article 23280


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!pipex!warwick!bsmail!danno!hedley
From: hedley@danno (David Hedley)
Subject: Re: Slip/NetBSD Help
Message-ID: <CFysFu.KHE@info.bris.ac.uk>
Sender: usenet@info.bris.ac.uk (Usenet news owner)
Nntp-Posting-Host: danno.cs.bris.ac.uk
Reply-To: hedley@cs.bris.ac.uk
Organization: Computer Science Dept. University of Bristol, England
X-Newsreader: TIN [version 1.2 PL0]
References: <tb75.752248407@sol>
Date: Thu, 4 Nov 1993 11:11:54 GMT
Lines: 73

Wilson Michael S (tb75@sol.acs.unt.edu) wrote:
: 	ANyone have  experince with getting slip to work on NetBSD? If 
: not is there a site that might have better documentation on how to get it 
: to work... I have be digging into all I have with the NetBSD .9 and I 
: still seem to be having trouble even understanding what the heck they are 
: talking about sometimes :)

: Any, thanks for any info.


A couple of friends of mine have PCs runnning NetBSD 0.9 and last week I
set about SLIPing them together. I scanned various FAQs and posts and read
the man pages for sliplogin and slattach to try to find out how to do it.
Unfortunately none of them helped, so I resorted to trial and error. As it
turned out, it was v. simple to SLIP them together.

Step 1:

    Decide on internet numbers for the 2 machines. If the machines already
    have internet numbers, then use them, otherwise just make them up
    (I used 1.1.1.1 (Computer 1) and 1.1.1.2 (Computer 2))

Step 2:

    Type: slattach -s 9600 /dev/com1
    on both machines (assuming you are using /dev/com1) You can use a
    different speed if you want, but it's best to start slow and then 
    speed up, rather than the other way round...

Step 3:
    
    on Computer 1 type: ifconfig sl0 inet 1.1.1.1 1.1.1.2 netmask 0xffffff00
    on Computer 2 type: ifconfig sl0 inet 1.1.1.2 1.1.1.1 netmask 0xffffff00
    

The machines are now linked! Type: netstat -nr   to check that the ip
addresses have been added to the routing table (using interface sl0)
On Computer 1 you should be able to type: ping 1.1.1.2   and it should come
up with a load of round-trip time information. If it just hangs, then you've
probably got the ip addresses round the wrong way (type: ifconfig sl0   on
both machines to check). Check it also works on Compuer 2. You should now be
able to ftp, telnet etc from one to the other.

If you want to assign your machines names, then you will have to create an
entry in /etc/hosts with the ip addresses and the machine names, and you'll
have to set up /etc/resolv.conf to use your local machine as a name server.
Both of these things are fairly trivial to set up.

Note that 'routed' and 'named' are not necessary for the above to work....

If you are SLIPing from your Unix box to a networked machine and want to
use it as a gateway to connect to other IP addresses, you'll have to be
more careful with your choice of IP address, and you'll have to type:
route add default 1.1.1.2   (assuming that 1.1.1.1 is the address of your
local box, and 1.1.1.2 is the address of the networked machine)

Please note that this is all from memory, so minor details may be incorrect
I hope not, but then that's life :(

Anyhow, I hope it's some help to you (or anyone else trying to link 2
machines together...)

David
--

+---------------------------------------------------------------------------+
| David Hedley (hedley@cs.bris.ac.uk) | "New systems generate new problems" |
| Computer Science Undergraduate      |                        - Anon       |
| University of Bristol               | "When in doubt - tell the truth"    |
| England                             |                        - Mark Twain |
|           *** All opinions expressed are mine and mine alone ***          |
+---------------------------------------------------------------------------+