Add a new translated section (PLIP).
This commit is contained in:
parent
2ab8784f1a
commit
ed1cf56c55
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=18865
1 changed files with 363 additions and 13 deletions
|
@ -3,23 +3,116 @@
|
|||
The FreeBSD French Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
$Id: chapter.sgml,v 1.4 2003-05-25 14:37:40 blackend Exp $
|
||||
Original revision: 1.246
|
||||
-->
|
||||
|
||||
<chapter id="advanced-networking">
|
||||
<title>Advanced Networking ** Traduction en Cours **</title>
|
||||
|
||||
<sect1>
|
||||
<sect1 id="advanced-networking-synopsis">
|
||||
<title>Synopsis</title>
|
||||
<para></para>
|
||||
|
||||
<para>Ce chapitre abordera certains des services réseaux
|
||||
les plus fréquemment utilisés sur les
|
||||
systèmes &unix;. Nous verrons comment définir,
|
||||
mettre en place, tester et maintenir tous les services
|
||||
réseaux qu'utilise &os;. De plus, des exemples de
|
||||
fichier de configuration ont été inclus tout au
|
||||
long de ce chapitre pour que vous puissiez en
|
||||
bénéficier.</para>
|
||||
|
||||
<para>Après la lecture de ce chapitre, vous
|
||||
connaîtrez:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Les bases sur les passerelles et les routes.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment utiliser &os; en tant que pont
|
||||
(“bridge”).</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer le système de fichiers
|
||||
réseau.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer le démarrage via le
|
||||
réseau pour une machine sans disque dur.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment mettre en place un serveur d'information sur le
|
||||
réseau pour partager les comptes utilisateurs.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer le paramétrage réseau
|
||||
automatique en utilisant DHCP.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer un serveur de noms de domaine.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment synchroniser l'heure et la date, et mettre en
|
||||
place en serveur de temps, avec le protocole NTP.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer la traduction d'adresse
|
||||
réseau.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment gérer le “daemon”
|
||||
<application>inetd</application>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment connecter deux ordinateurs via PLIP.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Comment configurer l'IPv6 sur une machine &os;.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>Avant de lire ce chapitre, vous devrez:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Comprendre les bases des procédures
|
||||
<filename>/etc/rc</filename>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Etre familier avec la terminologie réseau de
|
||||
base.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="routing">
|
||||
<sect1 id="network-routing">
|
||||
<title>Gateways and Routes</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="bridging">
|
||||
<sect1 id="network-wireless">
|
||||
<title>Wireless Networking</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="network-bluetooth">
|
||||
<title>Bluetooth</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="network-bridging">
|
||||
<title>Bridging</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
@ -29,17 +122,17 @@
|
|||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="diskless">
|
||||
<sect1 id="network-diskless">
|
||||
<title>Diskless Operation</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="isdn">
|
||||
<sect1 id="network-isdn">
|
||||
<title>ISDN</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="nis">
|
||||
<sect1 id="network-nis">
|
||||
<title>NIS/YP</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
@ -49,17 +142,17 @@
|
|||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="dns">
|
||||
<sect1 id="network-dns">
|
||||
<title>DNS</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="ntp">
|
||||
<sect1 id="network-ntp">
|
||||
<title>NTP</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="natd">
|
||||
<sect1 id="network-natd">
|
||||
<title>Network Address Translation</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
|
@ -98,8 +191,265 @@
|
|||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="plip">
|
||||
<title>Parallel Line IP (PLIP)</title>
|
||||
<sect1 id="network-plip">
|
||||
<title>IP sur liaison parallèle (PLIP)</title>
|
||||
|
||||
<indexterm><primary>PLIP</primary></indexterm>
|
||||
<indexterm><primary>IP sur liaison parallèle</primary></indexterm>
|
||||
|
||||
<para>PLIP nous permet d'utiliser le protocole TCP/IP entre ports
|
||||
parallèles. C'est utile sur des machines sans cartes
|
||||
réseaux, ou pour effectuer une installation sur
|
||||
ordinateur portable. Dans cette section nous aborderons:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>La fabrication d'un câble parallèle
|
||||
(“laplink”).</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>La connexion de deux ordinateurs via PLIP.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<sect2 id="network-create-parallel-cable">
|
||||
<title>Fabriquer un câble parallèle</title>
|
||||
|
||||
<para>Vous pouvez acheter un câble parallèle
|
||||
auprès de la plupart des vendeurs de matériel
|
||||
informatique. Si ce n'est pas le cas, ou désirez
|
||||
savoir comment est fait un tel câble, le tableau suivant
|
||||
montre comment en faire un à partir d'un câble
|
||||
parallèle d'imprimante.</para>
|
||||
|
||||
<table>
|
||||
<title>Câblage d'un câble parallèle pour
|
||||
réseau</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>Configurer PLIP</title>
|
||||
|
||||
<para>Tout d'abord procurez-vous un câble
|
||||
“laplink”. Vérifiez ensuite que les deux
|
||||
ordinateurs disposent d'un noyau avec le support pour le
|
||||
pilote de périphérique &man.lpt.4;.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>grep lp /var/run/dmesg.boot</userinput>
|
||||
lpt0: <Printer> on ppbus0
|
||||
lpt0: Interrupt-driven port</screen>
|
||||
|
||||
<para>Le port parallèle doit fonctionner sous interruption,
|
||||
sous &os; 4.X vous devriez avoir une ligne semblable
|
||||
à la ligne suivante dans le fichier de configuration du
|
||||
noyau:</para>
|
||||
|
||||
<programlisting>device ppc0 at isa? irq 7</programlisting>
|
||||
|
||||
<para>Sous &os; 5.X, le fichier
|
||||
<filename>/boot/device.hints</filename> devrait contenir les
|
||||
lignes suivantes:</para>
|
||||
|
||||
<programlisting>hint.ppc.0.at="isa"
|
||||
hint.ppc.0.irq="7"</programlisting>
|
||||
|
||||
<para>Ensuite vérifiez si le fichier de configuration du
|
||||
noyau contient une ligne <literal>device plip</literal>
|
||||
ou si le module <filename>plip.ko</filename> est chargé.
|
||||
Dans les deux cas l'interface réseau parallèle
|
||||
devrait apparaître quand vous utilisez directement la
|
||||
commande &man.ifconfig.8;. Sous &os; 4.X de cette
|
||||
manière:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig lp0</userinput>
|
||||
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500</screen>
|
||||
|
||||
<para>et sous &os; 5.X:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0</userinput>
|
||||
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500</screen>
|
||||
|
||||
<note><para>Le nom de périphérique utilisé
|
||||
pour l'interface parallèle est différent entre
|
||||
&os; 4.X
|
||||
(<devicename>lp<replaceable>X</replaceable></devicename>)
|
||||
et &os; 5.X
|
||||
(<devicename>plip<replaceable>X</replaceable></devicename>).</para></note>
|
||||
|
||||
<para>Branchez le câble “laplink” sur les
|
||||
interfaces parallèles des deux ordinateurs.</para>
|
||||
|
||||
<para>Configurez les paramètres de l'interface
|
||||
réseau des deux côtés en tant que
|
||||
<username>root</username>. Par exemple, si vous voulez
|
||||
connecter la machine <hostid>host1</hostid> fonctionnant sous
|
||||
&os; 4.X avec la machine <hostid>host2</hostid> tournant
|
||||
sous &os; 5.X:</para>
|
||||
|
||||
<programlisting> host1 <-----> host2
|
||||
IP Address 10.0.0.1 10.0.0.2</programlisting>
|
||||
|
||||
<para>Configurez l'interface sur <hostid>host1</hostid> en tapant:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig lp0 10.0.0.1 10.0.0.2</userinput></screen>
|
||||
|
||||
<para>Configurez l'interface sur <hostid>host2</hostid> en tapant:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig plip0 10.0.0.2 10.0.0.1</userinput></screen>
|
||||
|
||||
<para>Vous devriez avoir maintenant une connexion qui
|
||||
fonctionne. Veuillez consulter les pages de manuel &man.lp.4;
|
||||
et &man.lpt.4; pour plus de détails.</para>
|
||||
|
||||
<para>Vous devriez également ajouter les deux noms de
|
||||
machines dans le fichier
|
||||
<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</programlisting>
|
||||
|
||||
<para>Pour vérifier le bon fonctionnement de la connexion,
|
||||
aller sur les deux machines et effectuez un “ping”
|
||||
vers l'autre machine. Par exemple, sur
|
||||
<hostid>host1</hostid>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ifconfig lp0</userinput>
|
||||
lp0: 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 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
|
||||
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">
|
||||
<title>IPv6</title>
|
||||
<para></para>
|
||||
</sect1>
|
||||
</chapter>
|
||||
|
|
Loading…
Reference in a new issue