Update the PLIP section:

- Add info about the need of an interrupt driven port
- Update for 5.X
- Use an example of connection between a 4.X and a 5.X boxes.
This commit is contained in:
Marc Fonvieille 2003-11-15 20:05:08 +00:00
parent 69927433f3
commit 23dfd1710b
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=18863

View file

@ -6968,22 +6968,54 @@ BUSY</literallayout></entry>
<sect2 id="network-plip-setup">
<title>Setting Up PLIP</title>
<para>Get a laplink cable.</para>
<para>Confirm that both computers have a kernel with &man.lpt.4; driver
support.</para>
<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 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven
lp0: TCP/IP capable interface</screen>
lpt0: &lt;Printer&gt; on ppbus0
lpt0: Interrupt-driven port</screen>
<para>The parallel port must be an interrupt driven port, under
&os;&nbsp;4.X, you should have a line similar to the the
following on in your kernel configuration file:</para>
<programlisting>device ppc0 at isa? irq 7</programlisting>
<para>Under &os;&nbsp;5.X, the
<filename>/boot/device.hints</filename> file should contain the
following lines:</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 shoud appears when you
directly use the &man.ifconfig.8; command. Under
&os;&nbsp;4.X like this:</para>
<screen>&prompt.root; <userinput>ifconfig lp0</userinput>
lp0: flags=8810&lt;POINTOPOINT,SIMPLEX,MULTICAST&gt; mtu 1500</screen>
<para>and for &os;&nbsp;5.X:</para>
<screen>&prompt.root; <userinput>ifconfig plip0</userinput>
plip0: flags=8810&lt;POINTOPOINT,SIMPLEX,MULTICAST&gt; mtu 1500</screen>
<note><para>The device name used for parallel interface is
different between &os;&nbsp;4.X
(<devicename>lp<replaceable>X</replaceable></devicename>)
and &os;&nbsp;5.X
(<devicename>plip<replaceable>X</replaceable></devicename>).</para></note>
<para>Plug in the laplink cable into the parallel interface on
both computers.</para>
<para>Configure the network interface parameters for <devicename>lp0</devicename> on both
<para>Configure the network interface parameters on both
sites as <username>root</username>. For example, if you want connect
the host <hostid>host1</hostid> with <hostid>host2</hostid>:</para>
the host <hostid>host1</hostid> running &os;&nbsp;4.X with <hostid>host2</hostid> running &os;&nbsp;5.X:</para>
<programlisting> host1 &lt;-----&gt; host2
IP Address 10.0.0.1 10.0.0.2</programlisting>
@ -6994,7 +7026,7 @@ IP Address 10.0.0.1 10.0.0.2</programlisting>
<para>Configure the interface on <hostid>host2</hostid> by doing:</para>
<screen>&prompt.root; <userinput>ifconfig lp0 10.0.0.2 10.0.0.1</userinput></screen>
<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
@ -7018,7 +7050,7 @@ Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
host2 host1 UH 4 127592 lp0
host2 host1 UH 0 0 lp0
&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