source: server/other/dhcp.xml@ 4774914f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4774914f was 4774914f, checked in by Randy McMurchy <randy@…>, 19 years ago

Removed excessive whitespace from various package instructions

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

  • Property mode set to 100644
File size: 5.8 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<sect1 id="dhcp" xreflabel="DHCP-&dhcp-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="dhcp.html"?>
20<title><acronym>DHCP</acronym>-&dhcp-version;</title>
21
22<sect2>
23<title>Introduction to <application><acronym>DHCP</acronym></application></title>
24
25<para>The <application><acronym>DHCP</acronym></application> package contains
26both the client and server programs for <acronym>DHCP</acronym>.
27<command>dhclient</command> (the client) is useful for connecting your computer
28to a network which uses <acronym>DHCP</acronym> to assign network addresses.
29<command>dhcpd</command> (the server) is useful for assigning network addresses
30on your private network.</para>
31
32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP): <ulink
35url="&dhcp-download-http;"/></para></listitem>
36<listitem><para>Download (FTP): <ulink
37url="&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
45<sect3><title><application>dhcp</application> dependencies</title>
46<sect4><title>Required</title>
47<para><xref linkend="net-tools"/>. You may omit net-tools by using the
48following patch to utilize iproute2: <ulink
49url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/>.</para></sect4>
50</sect3>
51
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
58Socket Filtering either compiled in or as a kernel module.</para></note>
59
60<para>Install <application><acronym>DHCP</acronym></application> by running
61the 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
136<command>dhcrelay</command>.</para>
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>
155server on another subnet.</para></sect3>
156
157</sect2>
158
159</sect1>
160
Note: See TracBrowser for help on using the repository browser.