source: server/other/dhcp.xml@ d378ea3c

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 d378ea3c was d378ea3c, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Update to dhcp-3.0.3

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

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