source: server/other/dhcp.xml@ e05cd03f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 e05cd03f was 410e228b, checked in by Randy McMurchy <randy@…>, 16 years ago

Removed extraneous whitespace from the ends of line text

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

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