glfs/server/other/dhcp/dhcp-config.xml
Larry Lawrence 65df9fca7b grammar corrections
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2252 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-06-03 02:41:04 +00:00

52 lines
2.1 KiB
XML

<sect2>
<title>Configuring <application><acronym>DHCP</acronym></application></title>
<sect3><title>Config files</title>
<para><filename>/etc/dhclient.conf</filename></para>
</sect3>
<sect3><title>Configuration Information</title>
<para>Information on configuring the <acronym>DHCP</acronym> client can be
found in <xref linkend="connect-dhcp"/>.</para>
<para>Note that you only need the <acronym>DHCP</acronym> server if
you want to issue <acronym>LAN</acronym> addresses over your network. The
<acronym>DHCP</acronym> client doesn't need this script to be used. Also note
that this script is coded for the <emphasis role="strong">eth1</emphasis>
interface, which may need to be modified for your hardware configuration.</para>
<para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
<screen><userinput><command>make install-dhcp</command></userinput></screen>
<para>The lease file must exist on startup. The following command will
satisfy that requirement:</para>
<screen><userinput><command>touch /var/state/dhcp/dhcpd.leases</command></userinput></screen>
<para>The following commands will create a base configuration file for a
<acronym>DHCP</acronym> server. There are several options that you may want to
add (information that is passed back to the <acronym>DHCP</acronym> client) and
those are covered in the man pages for <filename>dhcp.conf</filename>.</para>
<screen><userinput><command>cat &gt; /etc/dhcpd.conf &lt;&lt; "EOF"</command>
default-lease-time 72000;
max-lease-time 144000;
ddns-update-style ad-hoc;
subnet <replaceable>[192.168.5.0]</replaceable> netmask <replaceable>[255.255.255.0]</replaceable> {
range <replaceable>[192.168.5.10] [192.168.5.240]</replaceable>;
option broadcast-address <replaceable>[195.168.5.255]</replaceable>;
option routers <replaceable>[192.168.5.1]</replaceable>;
}
<command>EOF</command></userinput></screen>
<para>All addresses should be changed to meet your circumstance.</para>
</sect3>
</sect2>