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