diff options
author | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
commit | 1ea73eea5ecc6a8ed901316049259aee737ee554 (patch) | |
tree | 03a077f0b1b1548f3c806bd1c5795964fba0fb52 /it/install-methods/tftp/dhcp.xml | |
download | installation-guide-1ea73eea5ecc6a8ed901316049259aee737ee554.zip |
move manual to top-level directory, split out of debian-installer package
Diffstat (limited to 'it/install-methods/tftp/dhcp.xml')
-rw-r--r-- | it/install-methods/tftp/dhcp.xml | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/it/install-methods/tftp/dhcp.xml b/it/install-methods/tftp/dhcp.xml new file mode 100644 index 000000000..dfb6bdbc3 --- /dev/null +++ b/it/install-methods/tftp/dhcp.xml @@ -0,0 +1,128 @@ +<!-- retain these comments for translator revision tracking --> +<!-- original version: 29400 --> + + + <sect2 condition="supports-dhcp" id="dhcpd"> + <!-- <title>Setting up a DHCP server</title> --> + <title>Attivare un server DHCP</title> + +<para> + +<!-- One free software DHCP server is ISC <command>dhcpd</command>. +In &debian;, this is available in the <classname>dhcp</classname> +package. Here is a sample configuration file for it (usually +<filename>/etc/dhcpd.conf</filename>): --> + +Un server DHCP libero è <command>dhcpd</command> di ISC. In &debian; è +disponibile nel pacchetto <classname>dhcp</classname>. Questo è un esempio +del file di configurazione per questo server (di solito +<filename>/etc/dhcpd.conf</filename>): + +<informalexample><screen> +option domain-name "example.com"; +option domain-name-servers ns1.example.com; +option subnet-mask 255.255.255.0; +default-lease-time 600; +max-lease-time 7200; +server-name "servername"; + +subnet 192.168.1.0 netmask 255.255.255.0 { + range 192.168.1.200 192.168.1.253; + option routers 192.168.1.1; +} + +host clientname { + filename "/tftpboot/tftpboot.img"; + server-name "servername"; + next-server servername; + hardware ethernet 01:23:45:67:89:AB; + fixed-address 192.168.1.90; +} +</screen></informalexample> + +<!-- Note: the new (and preferred) <classname>dhcp3</classname> package uses +<filename>/etc/dhcp3/dhcpd.conf</filename>. --> + +Nota: il nuovo (e da preferire) pacchetto <classname>dhcp3</classname> usa il +file <filename>/etc/dhcp3/dhcpd.conf</filename>. + +</para><para> + +<!-- In this example, there is one server +<replaceable>servername</replaceable> which performs all of the work +of DHCP server, TFTP server, and network gateway. You will almost +certainly need to change the domain-name options, as well as the +server name and client hardware address. The +<replaceable>filename</replaceable> option should be the name of the +file which will be retrieved via TFTP. --> + +In questo esempio c'è una macchina <replaceable>servername</replaceable> +che fa da server DHCP, da server TFTP e da gateway di rete. Sicuramente è +necessario cambiare le opzioni domain-name e anche il nome del server e +l'indirizzo hardware del client. Il valore dell'opzione +<replaceable>filename</replaceable> deve essere il nome del file che +verrà recuperato tramite TFTP. + +</para><para> + +<!-- After you have edited the <command>dhcpd</command> configuration file, +restart it with <userinput>/etc/init.d/dhcpd restart</userinput>. --> + +Dopo aver modificato il file di configurazione di <command>dhcpd</command> +riavviarlo con <userinput>/etc/init.d/dhcpd restart</userinput>. + +</para> + + <sect3 arch="i386"> + <!-- <title>Enabling PXE Booting in the DHCP configuration</title> --> + <title>Abilitare l'avvio PXE nella configurazione di DHCP</title> + +<para> + +<!-- Here is another example for a <filename>dhcp.conf</filename> using the +Pre-boot Execution Environment (PXE) method of TFTP. --> + +Questo è un altro esempio di <filename>dhcp.conf</filename> che usa il +metodo PXE (Pre-boot Execution Environment) di TFTP. + +<informalexample><screen> +option domain-name "example.com"; + +default-lease-time 600; +max-lease-time 7200; + +allow booting; +allow bootp; + +# The next paragraph needs to be modified to fit your case +subnet 192.168.1.0 netmask 255.255.255.0 { + range 192.168.1.200 192.168.1.253; + option broadcast-address 192.168.1.255; +# the gateway address which can be different +# (access to the internet for instance) + option routers 192.168.1.1; +# indicate the dns you want to use + option domain-name-servers 192.168.1.3; +} + +group { + next-server 192.168.1.3; + host tftpclient { +# tftp client hardware address + hardware ethernet 00:10:DC:27:6C:15; + filename "/tftpboot/pxelinux.0"; + } +} +</screen></informalexample> + +<!-- Note that for PXE booting, the client filename +<filename>pxelinux.0</filename> is a boot loader, not a kernel image +(see <xref linkend="tftp-images"/> below). --> + +Notare che con l'avvio PXE, il nome del file client +<filename>pxelinux.0</filename> è il bootloader, non l'immagine del kernel +(si consulti <xref linkend="tftp-images"/>). + +</para> + </sect3> + </sect2> |