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