source: server/other/dhcp.xml@ 6425d8e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6425d8e was 6425d8e, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Updating patch version in dhcp.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5967 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY dhcp-download-http "http://gd.tuwien.ac.at/infosys/servers/isc/dhcp/dhcp-&dhcp-version;.tar.gz">
20 <!ENTITY dhcp-download-ftp "ftp://ftp.isc.org/isc/dhcp/dhcp-&dhcp-version;.tar.gz">
21 <!ENTITY dhcp-md5sum "f91416a0b8ed3fd0601688cf0b7df58f">
22 <!ENTITY dhcp-size "856 KB">
23 <!ENTITY dhcp-buildsize "21.3 MB">
24 <!ENTITY dhcp-time "0.1 SBU">
25]>
26
27<sect1 id="dhcp" xreflabel="DHCP-&dhcp-version;">
28 <?dbhtml filename="dhcp.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 <keywordset>
34 <keyword role="package">dhcp-&dhcp-version;.tar</keyword>
35 <keyword role="ftpdir">dhcp</keyword>
36 </keywordset>
37 </sect1info>
38
39 <title>DHCP-&dhcp-version;</title>
40
41 <indexterm zone="dhcp">
42 <primary sortas="a-dhcp">Dhcp</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to DHCP</title>
47
48 <para>The <application>DHCP</application> package contains both the client
49 and server programs for DHCP. <command>dhclient</command> (the client) is
50 useful for connecting your computer to a network which uses DHCP to assign
51 network addresses. <command>dhcpd</command> (the server) is useful for
52 assigning network addresses on your private network.</para>
53
54 <bridgehead renderas="sect3">Package Information</bridgehead>
55 <itemizedlist spacing="compact">
56 <listitem>
57 <para>Download (HTTP): <ulink url="&dhcp-download-http;"/></para>
58 </listitem>
59 <listitem>
60 <para>Download (FTP): <ulink url="&dhcp-download-ftp;"/></para>
61 </listitem>
62 <listitem>
63 <para>Download MD5 sum: &dhcp-md5sum;</para>
64 </listitem>
65 <listitem>
66 <para>Download size: &dhcp-size;</para>
67 </listitem>
68 <listitem>
69 <para>Estimated disk space required: &dhcp-buildsize;</para>
70 </listitem>
71 <listitem>
72 <para>Estimated build time: &dhcp-time;</para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing='compact'>
78 <listitem>
79 <para>Optional Patch:
80 <ulink url="&patch-root;/dhcp-&dhcp-version;-iproute2-3.patch"/></para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">DHCP Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required"><xref linkend="net-tools"/> (you may omit
88 <application>net-tools</application> by using the optional patch
89 to utilize <application>iproute2</application>.</para>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/dhcp"/></para>
93
94 </sect2>
95
96 <sect2 role="kernel" id='dhcp-kernel'>
97 <title>Kernel Configuration</title>
98
99 <para>You must have Packet Socket support (Device Drivers &rArr; Networking
100 Support &rArr; Networking Options &rArr; Packet Socket) compiled into
101 the kernel.</para>
102
103 <indexterm zone="dhcp dhcp-kernel">
104 <primary sortas="d-dhcp">DHCP</primary>
105 </indexterm>
106
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of DHCP</title>
111
112 <para>If you chose not to install net-tools, apply the
113 iproute2 patch:</para>
114
115<screen><userinput>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-3.patch</userinput></screen>
116
117 <para>Install <application>DHCP</application> by running
118 the following commands:</para>
119
120<screen><userinput>./configure &amp;&amp;
121make</userinput></screen>
122
123 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
124
125<screen role="root"><userinput>make LIBDIR=/usr/lib INCDIR=/usr/include install</userinput></screen>
126
127 </sect2>
128
129 <sect2 role="commands">
130 <title>Command Explanations</title>
131
132 <para><parameter>LIBDIR=/usr/lib INCDIR=/usr/include</parameter>: This
133 command installs the library and include files in
134 <filename class="directory">/usr</filename> instead of
135 <filename class="directory">/usr/local</filename>.</para>
136
137 </sect2>
138
139 <sect2 role="configuration">
140 <title>Configuring DHCP</title>
141
142 <sect3 id='dhcp-config'>
143 <title>Config Files</title>
144
145 <para><filename>/etc/dhclient.conf</filename> and
146 <filename>/etc/dhcpd.conf</filename></para>
147
148 <indexterm zone="dhcp dhcp-config">
149 <primary sortas="e-etc-dhclient.conf">/etc/dhclient.conf</primary>
150 </indexterm>
151
152 <indexterm zone="dhcp dhcp-config">
153 <primary sortas="e-etc-dhcpd.conf">/etc/dhcpd.conf</primary>
154 </indexterm>
155
156 </sect3>
157
158 <sect3 id='dhcp-init'>
159 <title>Configuration Information</title>
160
161 <para>Information on configuring the DHCP client can be
162 found in <xref linkend="connect-dhcp"/>.</para>
163
164 <para>Note that you only need the DHCP server if you want to issue
165 LAN addresses over your network. The DHCP client doesn't need this
166 script to be used. Also note that this script is coded for the
167 <emphasis role="strong">eth1</emphasis> interface, which may need
168 to be modified for your hardware configuration.</para>
169
170 <para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
171 init script included in the <xref linkend="bootscripts"/>
172 package.</para>
173
174 <indexterm zone="dhcp dhcp-init">
175 <primary sortas="f-dhcp">dhcpd</primary>
176 </indexterm>
177
178<screen role="root"><userinput>make install-dhcp</userinput></screen>
179
180 <para>The lease file must exist on startup. The following command will
181 satisfy that requirement:</para>
182
183<screen role="root"><userinput>touch /var/state/dhcp/dhcpd.leases</userinput></screen>
184
185 <para>The following commands will create a base configuration file
186 for a DHCP server. There are several options that you may want to
187 add (information that is passed back to the DHCP client) and those
188 are covered in the man pages for <filename>dhcp.conf</filename>.</para>
189
190<screen role="root"><userinput>cat &gt; /etc/dhcpd.conf &lt;&lt; "EOF"
191<literal>default-lease-time 72000;
192max-lease-time 144000;
193ddns-update-style ad-hoc;
194
195subnet <replaceable>&lt;192.168.5.0&gt;</replaceable> netmask <replaceable>&lt;255.255.255.0&gt;</replaceable> {
196 range <replaceable>&lt;192.168.5.10&gt; &lt;192.168.5.240&gt;</replaceable>;
197 option broadcast-address <replaceable>&lt;192.168.5.255&gt;</replaceable>;
198 option routers <replaceable>&lt;192.168.5.1&gt;</replaceable>;
199}</literal>
200EOF</userinput></screen>
201
202 <para>All addresses should be changed to meet your circumstance.</para>
203
204 </sect3>
205
206 </sect2>
207
208 <sect2 role="content">
209 <title>Contents</title>
210
211 <segmentedlist>
212 <segtitle>Installed Programs</segtitle>
213 <segtitle>Installed Libraries</segtitle>
214 <segtitle>Installed Directories</segtitle>
215
216 <seglistitem>
217 <seg>dhcpd, dhcrelay, dhclient, dhclient-script, and omshell</seg>
218 <seg>bdhcpctl.a, libomapi.a</seg>
219 <seg>/var/state/dhcp, /usr/include/omapip, and /usr/include/isi-dhcp</seg>
220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="dhclient">
229 <term><command>dhclient</command></term>
230 <listitem>
231 <para>is the implementation of the DHCP client.</para>
232 <indexterm zone="dhcp dhclient">
233 <primary sortas="b-dhclient">dhclient</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="dhcpd">
239 <term><command>dhcpd</command></term>
240 <listitem>
241 <para>implements Dynamic Host Configuration Protocol (DHCP) and
242 Internet Bootstrap Protocol (BOOTP) requests for network
243 addresses.</para>
244 <indexterm zone="dhcp dhcpd">
245 <primary sortas="b-dhcpd">dhcpd</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="dhcrelay">
251 <term><command>dhcrelay</command></term>
252 <listitem>
253 <para>provides a means to accept DHCP and BOOTP requests on a subnet
254 without a DHCP server and relay them to a DHCP server on another
255 subnet.</para>
256 <indexterm zone="dhcp dhcrelay">
257 <primary sortas="b-dhcrelay">dhcrelay</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="omshell">
263 <term><command>omshell</command></term>
264 <listitem>
265 <para> provides an interactive way to connect to, query, and
266 possibly change, the ISC DHCP Server's state via OMAPI, the
267 Object Management API.</para>
268 <indexterm zone="dhcp omshell">
269 <primary sortas="b-omshell">omshell</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 </variablelist>
275
276 </sect2>
277
278</sect1>
Note: See TracBrowser for help on using the repository browser.