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