~qbalazs/installation-guide/lp1030336

« back to all changes in this revision

Viewing changes to eu/install-methods/tftp/bootp.xml

  • Committer: joeyh
  • Date: 2005-10-07 19:51:38 UTC
  • Revision ID: vcs-imports@canonical.com-20051007195138-c3d57b2617a79a4f
move manual to top-level directory, split out of debian-installer package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 16879 untranslated -->
 
3
 
 
4
 
 
5
  <sect2 condition="supports-bootp" id="tftp-bootp">
 
6
  <title>Setting up BOOTP server</title>
 
7
<para>
 
8
 
 
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
 
13
in &debian;.
 
14
 
 
15
</para><para>
 
16
 
 
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
 
22
look like: 
 
23
 
 
24
<informalexample><screen>
 
25
 
 
26
bootps  dgram  udp  wait  root  /usr/sbin/bootpd  bootpd -i -t 120
 
27
 
 
28
</screen></informalexample>
 
29
 
 
30
</para><para>
 
31
 
 
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>:
 
40
 
 
41
<informalexample><screen>
 
42
 
 
43
client:\
 
44
  hd=/tftpboot:\
 
45
  bf=tftpboot.img:\
 
46
  ip=192.168.1.90:\
 
47
  sm=255.255.255.0:\
 
48
  sa=192.168.1.1:\
 
49
  ha=0123456789AB:
 
50
 
 
51
</screen></informalexample>
 
52
 
 
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.
 
57
 
 
58
<phrase arch="mips"> 
 
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.
 
62
</phrase>
 
63
 
 
64
</para><para>
 
65
 
 
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
 
75
restart</userinput>.
 
76
 
 
77
</para>
 
78
  </sect2>