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