*BSD News Article 91900


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!not-for-mail
From: Phillip Musumeci <phillip@mirriwinni.cse.rmit.edu.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Query: PLIP connection.
Date: 25 Mar 1997 22:31:28 +1100
Organization: Computer Systems Engineering Department, RMIT Australia
Lines: 38
Message-ID: <87sp1kfbsf.fsf@mirriwinni.cse.rmit.edu.au>
References: <33369B7E.41C67EA6@sees.bangor.ac.uk>
NNTP-Posting-Host: pm.cse.rmit.edu.au
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37703

Ian <ian@sees.bangor.ac.uk> writes:

> 	I would like to connect up two FreeBSD PC's via the parallel
> ports as this will give me a better data transfer rate than a serial 
> connection. The FAQ and the Handbook talk about SLIP and PPP but only
> mention PLIP in asides. Can anyone give me any hints and tips as to 
> how to go about this?

The handbook gives the cable connection description.

On machine 1, adjust your /etc/sysconfig system configuration file to
contain

network_interfaces="lp0 lo0"
ifconfig_lp0="inet 192.168.1.6 192.168.1.7 netmask 255.255.255.0"
ifconfig_lo0="inet 127.0.0.1"

where in this example, we are saying that we have an lp0 device and a
loopback lo0 device, and then give the arguments to the ifconfig command to
set them up.  On machine 2, use

network_interfaces="lp0 lo0"
ifconfig_lp0="inet 192.168.1.7 192.168.1.6 netmask 255.255.255.0"
ifconfig_lo0="inet 127.0.0.1"

Notice that the addresses here are the other way around i.e. machine 1 has
IP address 192.168.1.6 and machine 2 has IP address 192.168.1.7.  The
192.168 network is used as that does not have to be registered.

After each machine reboots, they should be able to ping/ftp/telnet
etc. each other.  If you'd like to give your machines real names, enter
them in each host's /etc/hosts file.

phillip


UNIX _IS_ user friendly.  It's just selective about who its friends are.
                                                                  --unknown