Added a section how to connect 2 FreeBSD boxes over a parallel line (PLIP)
This commit is contained in:
parent
7f2861bbd5
commit
f48722c8d0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3706
1 changed files with 80 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $Id: install.sgml,v 1.11 1998-09-08 09:47:20 wosch Exp $ -->
|
||||
<!-- $Id: install.sgml,v 1.12 1998-10-30 23:15:03 wosch Exp $ -->
|
||||
<!-- The FreeBSD Documentation Project -->
|
||||
|
||||
<sect>
|
||||
|
@ -221,6 +221,85 @@
|
|||
you will get an error that complains about the record size being
|
||||
too big.
|
||||
|
||||
<sect1>
|
||||
<heading>Connect 2 FreeBSD boxes over a parallel line (PLIP)
|
||||
</heading>
|
||||
|
||||
<p>Get a laplink cable. Make sure both computer have a kernel
|
||||
with lpt driver support.
|
||||
|
||||
<verb>
|
||||
$ dmesg | grep lp
|
||||
lpt0 at 0x378-0x37f irq 7 on isa
|
||||
lpt0: Interrupt-driven port
|
||||
lp0: TCP/IP capable interface
|
||||
</verb>
|
||||
|
||||
<p>Plug in the laplink cable into the parallel interface.
|
||||
|
||||
<p>Configure the network interface parameters for lp0 on both
|
||||
sites as root. For example, if you want connect the host max
|
||||
with moritz
|
||||
|
||||
<verb>
|
||||
max <-----> moritz
|
||||
IP Address 10.0.0.1 10.0.0.2
|
||||
</verb>
|
||||
|
||||
on max start
|
||||
<verb>
|
||||
# ifconfig lp0 10.0.0.1 10.0.0.2
|
||||
</verb>
|
||||
|
||||
on moritz start
|
||||
|
||||
<verb>
|
||||
# ifconfig lp0 10.0.0.2 10.0.0.1
|
||||
</verb>
|
||||
|
||||
<P>Thats all! Please read also the manpages lp(4) and
|
||||
lpt(4).
|
||||
|
||||
<P>You should also add the hosts to /etc/hosts
|
||||
|
||||
<verb>
|
||||
127.0.0.1 localhost.my.domain localhost
|
||||
10.0.0.1 max.my.domain max
|
||||
10.0.0.2 moritz.my.domain moritz
|
||||
</verb>
|
||||
|
||||
<P>To check if it works do:
|
||||
|
||||
on max:
|
||||
|
||||
<verb>
|
||||
$ ifconfig lp0
|
||||
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
|
||||
</verb>
|
||||
|
||||
<verb>
|
||||
$ netstat -r
|
||||
Routing tables
|
||||
|
||||
Internet:
|
||||
Destination Gateway Flags Refs Use Netif Expire
|
||||
moritz max UH 4 127592 lp0
|
||||
</verb>
|
||||
|
||||
<verb>
|
||||
$ ping -c 4 moritz
|
||||
PING moritz (10.0.0.2): 56 data bytes
|
||||
64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms
|
||||
64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms
|
||||
64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms
|
||||
64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms
|
||||
|
||||
--- moritz ping statistics ---
|
||||
4 packets transmitted, 4 packets received, 0% packet loss
|
||||
round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms
|
||||
</verb>
|
||||
|
||||
<sect1>
|
||||
<heading>
|
||||
Can I install on my laptop over PLIP (Parallel Line IP)?
|
||||
|
|
Loading…
Reference in a new issue