source: server/other/dhcp.xml@ bdc769f

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 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since bdc769f was bdc769f, checked in by DJ Lucas <dj@…>, 17 years ago

Fix typos and styles from last night's commit.

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

  • Property mode set to 100644
File size: 6.0 KB
Line 
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
15<sect1 id="dhcp" xreflabel="DHCP-&dhcp-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="dhcp.html"?>
21<title><acronym>DHCP</acronym>-&dhcp-version;</title>
22
23<sect2>
24<title>Introduction to <application><acronym>DHCP</acronym></application></title>
25
26<para>The <application><acronym>DHCP</acronym></application> package contains
27both the client and server programs for <acronym>DHCP</acronym>.
28<command>dhclient</command> (the client) is useful for connecting your computer
29to a network which uses <acronym>DHCP</acronym> to assign network addresses.
30<command>dhcpd</command> (the server) is useful for assigning network addresses
31on your private network.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
35<listitem><para>Download (HTTP): <ulink
36url="&dhcp-download-http;"/></para></listitem>
37<listitem><para>Download (FTP): <ulink
38url="&dhcp-download-ftp;"/></para></listitem>
39<listitem><para>Download size: &dhcp-size;</para></listitem>
40<listitem><para>Estimated Disk space required:
41&dhcp-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&dhcp-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title><application>dhcp</application> dependencies</title>
47<sect4><title>Required</title>
48<para><xref linkend="net-tools"/> You may omit installing net-tools
49by using the following patch to utilize iproute2:
50<ulink url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/>.</para></sect4>
51</sect3>
52
53</sect2>
54
55<sect2>
56<title>Installation of <application><acronym>DHCP</acronym></application></title>
57
58<note><para>You must have Packet Socket support compiled in the kernel and
59Socket Filtering either compiled in or as a kernel module.</para></note>
60
61<para>Install <application><acronym>DHCP</acronym></application> by running the following commands:</para>
62
63<screen><userinput><command>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-1.patch &amp;&amp;
64./configure &amp;&amp;
65make &amp;&amp;
66make 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
74command installs the library and include files in <filename
75class="directory">/usr</filename> instead of <filename
76class="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
90found in <xref linkend="connect-dhcp"/>.</para>
91
92<para>Note that you only need the <acronym>DHCP</acronym> server if
93you 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
95that this script is coded for the <emphasis role="strong">eth1</emphasis>
96interface, which may need to be modified for your hardware configuration.</para>
97
98<para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
99init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
100
101<screen><userinput><command>make install-dhcp</command></userinput></screen>
102
103<para>The lease file must exist on startup. The following command will
104satisfy 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
110add (information that is passed back to the <acronym>DHCP</acronym> client) and
111those are covered in the man pages for <filename>dhcp.conf</filename>.</para>
112
113<screen><userinput><command>cat &gt; /etc/dhcpd.conf &lt;&lt; "EOF"</command>
114default-lease-time 72000;
115max-lease-time 144000;
116ddns-update-style ad-hoc;
117
118subnet <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
135<command>dhclient</command>, <command>dhcpd</command> and <command>dhcrelay</command>.</para>
136
137</sect2>
138
139<sect2><title>Description</title>
140
141<sect3><title>dhclient</title>
142<para><command>dhclient</command> is the implementation of the
143<acronym>DHCP</acronym> client.</para></sect3>
144
145<sect3><title>dhcpd</title>
146<para><command>dhcpd</command> implements Dynamic Host Configuration Protocol
147(<acronym>DHCP</acronym>) and Internet Bootstrap Protocol
148(<acronym>BOOTP</acronym>) requests for network addresses.</para></sect3>
149
150<sect3><title>dhcrelay</title>
151<para><command>dhcrelay</command> provides a means to accept <acronym>DHCP
152</acronym> and <acronym>BOOTP</acronym> requests on a subnet without a
153<acronym>DHCP</acronym> server and relay them to a <acronym>DHCP</acronym>
154server on another subnet.</para></sect3>
155
156</sect2>
157
158</sect1>
159
Note: See TracBrowser for help on using the repository browser.