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