~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to fr/install-methods/tftp/dhcp.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<!-- original version 29400 -->
 
3
 
 
4
 
 
5
  <sect2 condition="supports-dhcp" id="dhcpd">
 
6
   <title>Configurer un serveur DHCP</title>
 
7
<para>
 
8
 
 
9
Il existe un seul serveur DHCP libre, <command>dhcpd</command> ISC. Dans
 
10
&debian;, il est disponible dans le paquet <classname>dhcp</classname>. 
 
11
Voici un exemple de fichier de configuration (habituellement
 
12
<filename>/etc/dhcpd.conf</filename>)&nbsp;:
 
13
 
 
14
<informalexample><screen>
 
15
option domain-name "example.com";
 
16
option domain-name-servers ns1.example.com;
 
17
option subnet-mask 255.255.255.0;
 
18
default-lease-time 600;
 
19
max-lease-time 7200;
 
20
server-name "servername";
 
21
 
 
22
subnet 192.168.1.0 netmask 255.255.255.0 {
 
23
  range 192.168.1.200 192.168.1.253;
 
24
  option routers 192.168.1.1;
 
25
}
 
26
 
 
27
host clientname {
 
28
  filename "/tftpboot/tftpboot.img";
 
29
  server-name "servername";
 
30
  next-server servername;
 
31
  hardware ethernet 01:23:45:67:89:AB; 
 
32
  fixed-address 192.168.1.90;
 
33
}
 
34
</screen></informalexample>
 
35
 
 
36
Note&nbsp;: dans le nouveau paquet <classname>dhcp3</classname>, ce fichier
 
37
s'appelle <filename>/etc/dhcp3/dhcpd.conf</filename>. 
 
38
 
 
39
</para><para>
 
40
 
 
41
Dans cet exemple, il y a un serveur <replaceable>servername</replaceable> 
 
42
qui joue le r�le de serveur DHCP, serveur TFTP et passerelle r�seau. Vous 
 
43
devrez certainement changer les options de domain-name ainsi que le nom du 
 
44
serveur et les adresses mat�rielles du client. L'option
 
45
<replaceable>filename</replaceable> devrait �tre le nom du fichier extrait
 
46
via TFTP.
 
47
 
 
48
</para><para>
 
49
 
 
50
Apr�s avoir modifi� le fichier de configuration de <command>dhcpd</command>,
 
51
relancez <command>dhcpd</command> par 
 
52
<userinput>/etc/init.d/dhcpd restart</userinput>.
 
53
 
 
54
</para>
 
55
 
 
56
   <sect3 arch="i386">
 
57
   <title>Amor�age PXE et configuration de DHCP</title>
 
58
<para>
 
59
Voici un autre exemple de fichier <filename>dhcp.conf</filename> utilisant
 
60
la m�thode de chargement du syst�me d'exploitation par le r�seau g�r�e par le 
 
61
mat�riel (�&nbsp;Pre-boot Execution Environment&nbsp;�) (PXE) de TFTP.
 
62
 
 
63
<informalexample><screen>
 
64
option domain-name "example.com";
 
65
 
 
66
default-lease-time 600;
 
67
max-lease-time 7200;
 
68
 
 
69
allow booting;
 
70
allow bootp;
 
71
 
 
72
# The next paragraph needs to be modified to fit your case
 
73
subnet 192.168.1.0 netmask 255.255.255.0 {
 
74
  range 192.168.1.200 192.168.1.253;
 
75
  option broadcast-address 192.168.1.255;
 
76
# the gateway address which can be different 
 
77
# (access to the internet for instance)
 
78
  option routers 192.168.1.1;
 
79
# indicate the dns you want to use
 
80
  option domain-name-servers 192.168.1.3;
 
81
}
 
82
 
 
83
group {
 
84
 next-server 192.168.1.3;
 
85
 host tftpclient {
 
86
# tftp client hardware address
 
87
  hardware ethernet  00:10:DC:27:6C:15;
 
88
  filename "/tftpboot/pxelinux.0";
 
89
 }
 
90
}
 
91
</screen></informalexample>
 
92
 
 
93
Veuillez noter que pour un d�marrage PXE, le fichier du client 
 
94
<filename>pxelinux.0</filename> est un programme d'amor�age et non une image 
 
95
du noyau (voir <xref linkend="tftp-images"/> ci-dessous).
 
96
 
 
97
</para>
 
98
   </sect3>
 
99
  </sect2>