source: server/other/dhcp.xml@ 61e058b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 61e058b was 61e058b, checked in by DJ Lucas <dj@…>, 19 years ago

dhclient script update and dhcp-gcc-3.4.3 patch, jdk symlink

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

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