source: server/other/dhcp/dhcp-config.xml@ 65df9fca

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 65df9fca was 65df9fca, checked in by Larry Lawrence <larry@…>, 17 years ago

grammar corrections

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2252 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.1 KB
Line 
1<sect2>
2<title>Configuring <application><acronym>DHCP</acronym></application></title>
3
4<sect3><title>Config files</title>
5<para><filename>/etc/dhclient.conf</filename></para>
6</sect3>
7
8<sect3><title>Configuration Information</title>
9
10<para>Information on configuring the <acronym>DHCP</acronym> client can be
11found in <xref linkend="connect-dhcp"/>.</para>
12
13<para>Note that you only need the <acronym>DHCP</acronym> server if
14you want to issue <acronym>LAN</acronym> addresses over your network. The
15<acronym>DHCP</acronym> client doesn't need this script to be used. Also note
16that this script is coded for the <emphasis role="strong">eth1</emphasis>
17interface, which may need to be modified for your hardware configuration.</para>
18
19<para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
20init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
21
22<screen><userinput><command>make install-dhcp</command></userinput></screen>
23
24<para>The lease file must exist on startup. The following command will
25satisfy that requirement:</para>
26
27<screen><userinput><command>touch /var/state/dhcp/dhcpd.leases</command></userinput></screen>
28
29<para>The following commands will create a base configuration file for a
30<acronym>DHCP</acronym> server. There are several options that you may want to
31add (information that is passed back to the <acronym>DHCP</acronym> client) and
32those are covered in the man pages for <filename>dhcp.conf</filename>.</para>
33
34<screen><userinput><command>cat &gt; /etc/dhcpd.conf &lt;&lt; "EOF"</command>
35default-lease-time 72000;
36max-lease-time 144000;
37ddns-update-style ad-hoc;
38
39subnet <replaceable>[192.168.5.0]</replaceable> netmask <replaceable>[255.255.255.0]</replaceable> {
40 range <replaceable>[192.168.5.10] [192.168.5.240]</replaceable>;
41 option broadcast-address <replaceable>[195.168.5.255]</replaceable>;
42 option routers <replaceable>[192.168.5.1]</replaceable>;
43}
44<command>EOF</command></userinput></screen>
45
46<para>All addresses should be changed to meet your circumstance.</para>
47
48</sect3>
49
50</sect2>
51
Note: See TracBrowser for help on using the repository browser.