[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/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-size "852 KB">
|
---|
| 10 | <!ENTITY dhcp-buildsize "29.6 MB">
|
---|
| 11 | <!ENTITY dhcp-time "0.23 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[40330fcd] | 14 | <sect1 id="dhcp" xreflabel="DHCP-&dhcp-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[00bb024c] | 19 | <?dbhtml filename="dhcp.html"?>
|
---|
[40330fcd] | 20 | <title><acronym>DHCP</acronym>-&dhcp-version;</title>
|
---|
[f45b1953] | 21 |
|
---|
[0931098] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application><acronym>DHCP</acronym></application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application><acronym>DHCP</acronym></application> package contains
|
---|
| 26 | both the client and server programs for <acronym>DHCP</acronym>.
|
---|
| 27 | <command>dhclient</command> (the client) is useful for connecting your computer
|
---|
| 28 | to a network which uses <acronym>DHCP</acronym> to assign network addresses.
|
---|
| 29 | <command>dhcpd</command> (the server) is useful for assigning network addresses
|
---|
| 30 | on your private network.</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&dhcp-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&dhcp-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &dhcp-size;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated Disk space required:
|
---|
| 40 | &dhcp-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &dhcp-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
[662602c] | 45 | <sect3><title><application>dhcp</application> dependencies</title>
|
---|
| 46 | <sect4><title>Required</title>
|
---|
[fe5f3849] | 47 | <para><xref linkend="net-tools"/>. You may omit net-tools by using the
|
---|
| 48 | following patch to utilize iproute2: <ulink
|
---|
| 49 | url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/>.</para></sect4>
|
---|
[fa052cc7] | 50 | </sect3>
|
---|
| 51 |
|
---|
[0931098] | 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2>
|
---|
| 55 | <title>Installation of <application><acronym>DHCP</acronym></application></title>
|
---|
| 56 |
|
---|
| 57 | <note><para>You must have Packet Socket support compiled in the kernel and
|
---|
| 58 | Socket Filtering either compiled in or as a kernel module.</para></note>
|
---|
[4774914f] | 59 |
|
---|
| 60 | <para>Install <application><acronym>DHCP</acronym></application> by running
|
---|
| 61 | the following commands:</para>
|
---|
[0931098] | 62 |
|
---|
[fa052cc7] | 63 | <screen><userinput><command>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-1.patch &&
|
---|
| 64 | ./configure &&
|
---|
[0931098] | 65 | make &&
|
---|
| 66 | make LIBDIR=/usr/lib INCDIR=/usr/include install</command></userinput></screen>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2>
|
---|
| 71 | <title>Command explanations</title>
|
---|
| 72 |
|
---|
| 73 | <para><parameter>LIBDIR=/usr/lib INCDIR=/usr/include</parameter>: This
|
---|
| 74 | command installs the library and include files in <filename
|
---|
| 75 | class="directory">/usr</filename> instead of <filename
|
---|
| 76 | class="directory">/usr/local</filename>.</para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2>
|
---|
| 81 | <title>Configuring <application><acronym>DHCP</acronym></application></title>
|
---|
| 82 |
|
---|
| 83 | <sect3><title>Config files</title>
|
---|
| 84 | <para><filename>/etc/dhclient.conf</filename></para>
|
---|
| 85 | </sect3>
|
---|
| 86 |
|
---|
| 87 | <sect3><title>Configuration Information</title>
|
---|
| 88 |
|
---|
| 89 | <para>Information on configuring the <acronym>DHCP</acronym> client can be
|
---|
| 90 | found in <xref linkend="connect-dhcp"/>.</para>
|
---|
| 91 |
|
---|
| 92 | <para>Note that you only need the <acronym>DHCP</acronym> server if
|
---|
| 93 | you want to issue <acronym>LAN</acronym> addresses over your network. The
|
---|
| 94 | <acronym>DHCP</acronym> client doesn't need this script to be used. Also note
|
---|
| 95 | that this script is coded for the <emphasis role="strong">eth1</emphasis>
|
---|
| 96 | interface, which may need to be modified for your hardware configuration.</para>
|
---|
| 97 |
|
---|
| 98 | <para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
|
---|
| 99 | init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[4774914f] | 100 |
|
---|
[0931098] | 101 | <screen><userinput><command>make install-dhcp</command></userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>The lease file must exist on startup. The following command will
|
---|
| 104 | satisfy that requirement:</para>
|
---|
| 105 |
|
---|
| 106 | <screen><userinput><command>touch /var/state/dhcp/dhcpd.leases</command></userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>The following commands will create a base configuration file for a
|
---|
| 109 | <acronym>DHCP</acronym> server. There are several options that you may want to
|
---|
| 110 | add (information that is passed back to the <acronym>DHCP</acronym> client) and
|
---|
| 111 | those are covered in the man pages for <filename>dhcp.conf</filename>.</para>
|
---|
| 112 |
|
---|
| 113 | <screen><userinput><command>cat > /etc/dhcpd.conf << "EOF"</command>
|
---|
| 114 | default-lease-time 72000;
|
---|
| 115 | max-lease-time 144000;
|
---|
| 116 | ddns-update-style ad-hoc;
|
---|
| 117 |
|
---|
| 118 | subnet <replaceable>[192.168.5.0]</replaceable> netmask <replaceable>[255.255.255.0]</replaceable> {
|
---|
| 119 | range <replaceable>[192.168.5.10] [192.168.5.240]</replaceable>;
|
---|
| 120 | option broadcast-address <replaceable>[195.168.5.255]</replaceable>;
|
---|
| 121 | option routers <replaceable>[192.168.5.1]</replaceable>;
|
---|
| 122 | }
|
---|
| 123 | <command>EOF</command></userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>All addresses should be changed to meet your circumstance.</para>
|
---|
| 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2>
|
---|
| 132 | <title>Contents</title>
|
---|
| 133 |
|
---|
| 134 | <para>The <application><acronym>DHCP</acronym></application> package contains
|
---|
[4774914f] | 135 | <command>dhclient</command>, <command>dhcpd</command> and
|
---|
| 136 | <command>dhcrelay</command>.</para>
|
---|
[0931098] | 137 |
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
| 140 | <sect2><title>Description</title>
|
---|
| 141 |
|
---|
| 142 | <sect3><title>dhclient</title>
|
---|
| 143 | <para><command>dhclient</command> is the implementation of the
|
---|
| 144 | <acronym>DHCP</acronym> client.</para></sect3>
|
---|
| 145 |
|
---|
| 146 | <sect3><title>dhcpd</title>
|
---|
| 147 | <para><command>dhcpd</command> implements Dynamic Host Configuration Protocol
|
---|
| 148 | (<acronym>DHCP</acronym>) and Internet Bootstrap Protocol
|
---|
| 149 | (<acronym>BOOTP</acronym>) requests for network addresses.</para></sect3>
|
---|
| 150 |
|
---|
| 151 | <sect3><title>dhcrelay</title>
|
---|
| 152 | <para><command>dhcrelay</command> provides a means to accept <acronym>DHCP
|
---|
| 153 | </acronym> and <acronym>BOOTP</acronym> requests on a subnet without a
|
---|
| 154 | <acronym>DHCP</acronym> server and relay them to a <acronym>DHCP</acronym>
|
---|
| 155 | server on another subnet.</para></sect3>
|
---|
| 156 |
|
---|
| 157 | </sect2>
|
---|
[f45b1953] | 158 |
|
---|
| 159 | </sect1>
|
---|
| 160 |
|
---|