1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 16879 untranslated -->
5
<sect2 condition="supports-bootp" id="tftp-bootp">
6
<title>Setting up BOOTP server</title>
9
There are two BOOTP servers available for GNU/Linux, the CMU
10
<command>bootpd</command> and the other is actually a DHCP server, ISC
11
<command>dhcpd</command>, which are contained in the
12
<classname>bootp</classname> and <classname>dhcp</classname> packages
17
To use CMU <command>bootpd</command>, you must first uncomment (or
18
add) the relevant line in <filename>/etc/inetd.conf</filename>. On
19
&debian;, you can run <userinput>update-inetd --enable
20
bootps</userinput>, then <userinput>/etc/init.d/inetd
21
reload</userinput> to do so. Elsewhere, the line in question should
24
<informalexample><screen>
26
bootps dgram udp wait root /usr/sbin/bootpd bootpd -i -t 120
28
</screen></informalexample>
32
Now, you must create an <filename>/etc/bootptab</filename> file. This
33
has the same sort of familiar and cryptic format as the good old BSD
34
<filename>printcap</filename>, <filename>termcap</filename>, and
35
<filename>disktab</filename> files. See the
36
<filename>bootptab</filename> manual page for more information. For
37
CMU <command>bootpd</command>, you will need to know the hardware
38
(MAC) address of the client. Here is an example
39
<filename>/etc/bootptab</filename>:
41
<informalexample><screen>
51
</screen></informalexample>
53
You will need to change at least the "ha" option, which specifies the
54
hardware address of the client. The "bf" option specifies the file a
55
client should retrieve via TFTP; see
56
<xref linkend="tftp-images"/> for more details.
59
On SGI Indys you can just enter the command monitor and type
60
<userinput>printenv</userinput>. The value of the
61
<userinput>eaddr</userinput> variable is the machine's MAC address.
66
By contrast, setting up BOOTP with ISC <command>dhcpd</command> is
67
really easy, because it treats BOOTP clients as a moderately special
68
case of DHCP clients. Some architectures require a complex
69
configuration for booting clients via BOOTP. If yours is one of
70
those, read the section <xref linkend="dhcpd"/>. Otherwise, you
71
will probably be able to get away with simply adding the
72
<userinput>allow bootp</userinput> directive to the configuration
73
block for the subnet containing the client, and restart
74
<command>dhcpd</command> with <userinput>/etc/init.d/dhcpd