source: networking/connect/dhcp.xml@ 6d15c62

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

Rearrange package organization

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

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
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">
8 <!ENTITY dhcp-md5sum "724bad21ad8b638abadd5fcc07df1a0f">
9 <!ENTITY dhcp-size "876 KB">
10 <!ENTITY dhcp-buildsize "21 MB">
11 <!ENTITY dhcp-time "0.1 SBU">
12]>
13
14<sect1 id="dhcp" xreflabel="DHCP-&dhcp-version;">
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
59 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
60 <itemizedlist spacing='compact'>
61 <listitem>
62 <para>Required Patch:
63 <ulink url="&patch-root;/dhcp-&dhcp-version;-client_dns-1.patch"/></para>
64 </listitem>
65 <listitem>
66 <para>Optional Patch:
67 <ulink url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/></para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">DHCP Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required"><xref linkend="net-tools"/> (you may omit
75 <application>net-tools</application> by using the optional patch
76 to utilize <application>iproute2</application>.</para>
77
78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/dhcp"/></para>
80
81 </sect2>
82
83 <sect2 role="kernel" id='dhcp-kernel'>
84 <title>Kernel Configuration</title>
85
86 <para>You must have Packet Socket support (Device Drivers &rArr; Networking
87 Support &rArr; Networking Options &rArr; Packet Socket) compiled into
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
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
104 <para>If you chose not to install net-tools, apply the
105 iproute2 patch:</para>
106
107<screen><userinput>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-1.patch</userinput></screen>
108
109 <para>Install <application>DHCP</application> by running
110 the following commands:</para>
111
112<screen><userinput>./configure &amp;&amp;
113make</userinput></screen>
114
115 <para>This package does not come with a test suite.</para>
116
117 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
118
119<screen role="root"><userinput>make LIBDIR=/usr/lib INCDIR=/usr/include install</userinput></screen>
120
121 </sect2>
122
123 <sect2 role="commands">
124 <title>Command Explanations</title>
125
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>
130
131 </sect2>
132
133 <sect2 role="configuration">
134 <title>Configuring DHCP</title>
135
136 <sect3 id='dhcp-config'>
137 <title>Config Files</title>
138
139 <para><filename>/etc/dhclient.conf</filename> and
140 <filename>/etc/dhcpd.conf</filename></para>
141
142 <indexterm zone="dhcp dhcp-config">
143 <primary sortas="e-etc-dhclient.conf">/etc/dhclient.conf</primary>
144 </indexterm>
145
146 <indexterm zone="dhcp dhcp-config">
147 <primary sortas="e-etc-dhcpd.conf">/etc/dhcpd.conf</primary>
148 </indexterm>
149
150 </sect3>
151
152 <sect3 id='dhcp-init'>
153 <title>Configuration Information</title>
154
155 <para>Information on configuring the DHCP client can be
156 found in <xref linkend="basicnet-connect"/>.</para>
157
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>
163
164 <para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
165 init script included in the <xref linkend="bootscripts"/>
166 package.</para>
167
168 <indexterm zone="dhcp dhcp-init">
169 <primary sortas="f-dhcp">dhcpd</primary>
170 </indexterm>
171
172<screen role="root"><userinput>make install-dhcp</userinput></screen>
173
174 <para>The lease file must exist on startup. The following command will
175 satisfy that requirement:</para>
176
177<screen role="root"><userinput>touch /var/state/dhcp/dhcpd.leases</userinput></screen>
178
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;
186max-lease-time 144000;
187ddns-update-style ad-hoc;
188
189subnet <replaceable>&lt;192.168.5.0&gt;</replaceable> netmask <replaceable>&lt;255.255.255.0&gt;</replaceable> {
190 range <replaceable>&lt;192.168.5.10&gt; &lt;192.168.5.240&gt;</replaceable>;
191 option broadcast-address <replaceable>&lt;192.168.5.255&gt;</replaceable>;
192 option routers <replaceable>&lt;192.168.5.1&gt;</replaceable>;
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>
271
272</sect1>
Note: See TracBrowser for help on using the repository browser.