source: server/other/dhcp.xml@ bb019c9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bb019c9 was 3cb0c57, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #9

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

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