Remove mention of plip0, the parallel-port network device. As Diane
Bruce succintly explains it: "PLIP is obsolescent, blah blah blah."
This commit is contained in:
parent
afad028bc8
commit
8511ea86cc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40833
3 changed files with 0 additions and 241 deletions
en_US.ISO8859-1/books/handbook
|
@ -44,10 +44,6 @@
|
|||
<para>How to set up network address translation.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>How to connect two computers via PLIP.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>How to set up IPv6 on a FreeBSD machine.</para>
|
||||
</listitem>
|
||||
|
@ -5420,231 +5416,6 @@ redirect_port tcp 192.168.0.3:80 80</programlisting>
|
|||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="network-plip">
|
||||
<title>Parallel Line IP (PLIP)</title>
|
||||
|
||||
<indexterm><primary>PLIP</primary></indexterm>
|
||||
<indexterm>
|
||||
<primary>Parallel Line IP</primary>
|
||||
<see>PLIP</see>
|
||||
</indexterm>
|
||||
|
||||
<para>PLIP lets us run TCP/IP between parallel ports. It is
|
||||
useful on machines without network cards, or to install on
|
||||
laptops. In this section, we will discuss:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Creating a parallel (laplink) cable.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Connecting two computers with PLIP.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<sect2 id="network-create-parallel-cable">
|
||||
<title>Creating a Parallel Cable</title>
|
||||
|
||||
<para>You can purchase a parallel cable at most computer supply
|
||||
stores. If you cannot do that, or you just want to know how
|
||||
it is done, the following table shows how to make one out of a
|
||||
normal parallel printer cable.</para>
|
||||
|
||||
<table frame="none">
|
||||
<title>Wiring a Parallel Cable for Networking</title>
|
||||
|
||||
<tgroup cols="5">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>A-name</entry>
|
||||
<entry>A-End</entry>
|
||||
<entry>B-End</entry>
|
||||
<entry>Descr.</entry>
|
||||
<entry>Post/Bit</entry>
|
||||
</row>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><literallayout>DATA0
|
||||
-ERROR</literallayout></entry>
|
||||
|
||||
<entry><literallayout>2
|
||||
|
||||
15</literallayout></entry>
|
||||
|
||||
<entry><literallayout>15
|
||||
|
||||
2</literallayout></entry>
|
||||
|
||||
<entry>Data</entry>
|
||||
|
||||
<entry><literallayout>0/0x01
|
||||
1/0x08</literallayout></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literallayout>DATA1
|
||||
+SLCT</literallayout></entry>
|
||||
|
||||
<entry><literallayout>3
|
||||
13</literallayout></entry>
|
||||
|
||||
<entry><literallayout>13
|
||||
3</literallayout></entry>
|
||||
|
||||
<entry>Data</entry>
|
||||
|
||||
<entry><literallayout>0/0x02
|
||||
1/0x10</literallayout></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literallayout>DATA2
|
||||
+PE</literallayout></entry>
|
||||
|
||||
<entry><literallayout>4
|
||||
12</literallayout></entry>
|
||||
|
||||
<entry><literallayout>12
|
||||
4</literallayout></entry>
|
||||
|
||||
<entry>Data</entry>
|
||||
|
||||
<entry><literallayout>0/0x04
|
||||
1/0x20</literallayout></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literallayout>DATA3
|
||||
-ACK</literallayout></entry>
|
||||
|
||||
<entry><literallayout>5
|
||||
10</literallayout></entry>
|
||||
|
||||
<entry><literallayout>10
|
||||
5</literallayout></entry>
|
||||
|
||||
<entry>Strobe</entry>
|
||||
|
||||
<entry><literallayout>0/0x08
|
||||
1/0x40</literallayout></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literallayout>DATA4
|
||||
BUSY</literallayout></entry>
|
||||
|
||||
<entry><literallayout>6
|
||||
11</literallayout></entry>
|
||||
|
||||
<entry><literallayout>11
|
||||
6</literallayout></entry>
|
||||
|
||||
<entry>Data</entry>
|
||||
|
||||
<entry><literallayout>0/0x10
|
||||
1/0x80</literallayout></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>GND</entry>
|
||||
<entry>18-25</entry>
|
||||
<entry>18-25</entry>
|
||||
<entry>GND</entry>
|
||||
<entry>-</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="network-plip-setup">
|
||||
<title>Setting Up PLIP</title>
|
||||
|
||||
<para>First, you have to get a laplink cable. Then, confirm
|
||||
that both computers have a kernel with &man.lpt.4; driver
|
||||
support:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>grep lp /var/run/dmesg.boot</userinput>
|
||||
lpt0: <Printer> on ppbus0
|
||||
lpt0: Interrupt-driven port</screen>
|
||||
|
||||
<para>The parallel port must be an interrupt driven port, you
|
||||
should have lines similar to the following in your in the
|
||||
<filename>/boot/device.hints</filename> file:</para>
|
||||
|
||||
<programlisting>hint.ppc.0.at="isa"
|
||||
hint.ppc.0.irq="7"</programlisting>
|
||||
|
||||
<para>Then check if the kernel configuration file has a
|
||||
<literal>device plip</literal> line or if the
|
||||
<filename>plip.ko</filename> kernel module is loaded. In both
|
||||
cases the parallel networking interface should appear when you
|
||||
use the &man.ifconfig.8; command to display it:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0</userinput>
|
||||
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500</screen>
|
||||
|
||||
<para>Plug the laplink cable into the parallel interface on
|
||||
both computers.</para>
|
||||
|
||||
<para>Configure the network interface parameters on both sites
|
||||
as <username>root</username>. For example, if you want to
|
||||
connect the host <hostid>host1</hostid> with another machine
|
||||
<hostid>host2</hostid>:</para>
|
||||
|
||||
<programlisting> host1 <-----> host2
|
||||
IP Address 10.0.0.1 10.0.0.2</programlisting>
|
||||
|
||||
<para>Configure the interface on <hostid>host1</hostid> by
|
||||
doing:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0 10.0.0.1 10.0.0.2</userinput></screen>
|
||||
|
||||
<para>Configure the interface on <hostid>host2</hostid> by
|
||||
doing:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0 10.0.0.2 10.0.0.1</userinput></screen>
|
||||
|
||||
<para>You now should have a working connection. Please read the
|
||||
manual pages &man.lp.4; and &man.lpt.4; for more
|
||||
details.</para>
|
||||
|
||||
<para>You should also add both hosts to
|
||||
<filename>/etc/hosts</filename>:</para>
|
||||
|
||||
<programlisting>127.0.0.1 localhost.my.domain localhost
|
||||
10.0.0.1 host1.my.domain host1
|
||||
10.0.0.2 host2.my.domain host2</programlisting>
|
||||
|
||||
<para>To confirm the connection works, go to each host and ping
|
||||
the other. For example, on <hostid>host1</hostid>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0</userinput>
|
||||
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
||||
inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
|
||||
&prompt.root; <userinput>netstat -r</userinput>
|
||||
Routing tables
|
||||
|
||||
Internet:
|
||||
Destination Gateway Flags Refs Use Netif Expire
|
||||
host2 host1 UH 0 0 plip0
|
||||
&prompt.root; <userinput>ping -c 4 host2</userinput>
|
||||
PING host2 (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
|
||||
|
||||
--- host2 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</screen>
|
||||
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="network-ipv6">
|
||||
<sect1info>
|
||||
<authorgroup>
|
||||
|
|
|
@ -1060,7 +1060,6 @@ dc1: flags=8802<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
|
|||
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
|
||||
media: Ethernet 10baseT/UTP
|
||||
status: no carrier
|
||||
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
|
||||
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
|
||||
options=3<RXCSUM,TXCSUM>
|
||||
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
|
||||
|
@ -1082,12 +1081,6 @@ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
|
|||
interface</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><devicename>plip0</devicename>: The parallel port
|
||||
interface (if a parallel port is present on the
|
||||
machine)</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><devicename>lo0</devicename>: The loopback
|
||||
device</para>
|
||||
|
|
|
@ -1164,11 +1164,6 @@ device ppc</programlisting>
|
|||
printer support.</para>
|
||||
</note>
|
||||
|
||||
<programlisting>device plip # TCP/IP over parallel</programlisting>
|
||||
|
||||
<para>This is the driver for the parallel network
|
||||
interface.</para>
|
||||
|
||||
<programlisting>device ppi # Parallel port interface device</programlisting>
|
||||
|
||||
<para>The general-purpose I/O (<quote>geek port</quote>) +
|
||||
|
|
Loading…
Reference in a new issue