source: server/other/dhcp.xml@ 662602c

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 662602c was 662602c, checked in by DJ Lucas <dj@…>, 20 years ago

fixed deps and optional patch for dhcp and rp-pppoe.

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

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[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;">
[a0f03b0]16<sect1info>
[5cd0959d]17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
[a0f03b0]19</sect1info>
[00bb024c]20<?dbhtml filename="dhcp.html"?>
[40330fcd]21<title><acronym>DHCP</acronym>-&dhcp-version;</title>
[f45b1953]22
[0931098]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
[662602c]46<sect3><title><application>dhcp</application> dependencies</title>
47<sect4><title>Required</title>
48<para><xref linkend="net-tools"/></para></sect4>
49</sect3>
50
[fa052cc7]51<sect3><title>Additional downloads</title>
52<itemizedlist spacing='compact'>
[662602c]53<listitem><para>Optional Patch to use iproute2 (this removes the
54dependacy on net-tools):
[fa052cc7]55<ulink url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/></para></listitem>
56</itemizedlist>
57</sect3>
58
[0931098]59</sect2>
60
61<sect2>
62<title>Installation of <application><acronym>DHCP</acronym></application></title>
63
64<note><para>You must have Packet Socket support compiled in the kernel and
65Socket Filtering either compiled in or as a kernel module.</para></note>
66
67<para>Install <application><acronym>DHCP</acronym></application> by running the following commands:</para>
68
[fa052cc7]69<screen><userinput><command>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-1.patch &amp;&amp;
70./configure &amp;&amp;
[0931098]71make &amp;&amp;
72make LIBDIR=/usr/lib INCDIR=/usr/include install</command></userinput></screen>
73
74</sect2>
75
76<sect2>
77<title>Command explanations</title>
78
79<para><parameter>LIBDIR=/usr/lib INCDIR=/usr/include</parameter>: This
80command installs the library and include files in <filename
81class="directory">/usr</filename> instead of <filename
82class="directory">/usr/local</filename>.</para>
83
84</sect2>
85
86<sect2>
87<title>Configuring <application><acronym>DHCP</acronym></application></title>
88
89<sect3><title>Config files</title>
90<para><filename>/etc/dhclient.conf</filename></para>
91</sect3>
92
93<sect3><title>Configuration Information</title>
94
95<para>Information on configuring the <acronym>DHCP</acronym> client can be
96found in <xref linkend="connect-dhcp"/>.</para>
97
98<para>Note that you only need the <acronym>DHCP</acronym> server if
99you want to issue <acronym>LAN</acronym> addresses over your network. The
100<acronym>DHCP</acronym> client doesn't need this script to be used. Also note
101that this script is coded for the <emphasis role="strong">eth1</emphasis>
102interface, which may need to be modified for your hardware configuration.</para>
103
104<para>Install the <filename>/etc/rc.d/init.d/dhcp</filename>
105init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
106
107<screen><userinput><command>make install-dhcp</command></userinput></screen>
108
109<para>The lease file must exist on startup. The following command will
110satisfy that requirement:</para>
111
112<screen><userinput><command>touch /var/state/dhcp/dhcpd.leases</command></userinput></screen>
113
114<para>The following commands will create a base configuration file for a
115<acronym>DHCP</acronym> server. There are several options that you may want to
116add (information that is passed back to the <acronym>DHCP</acronym> client) and
117those are covered in the man pages for <filename>dhcp.conf</filename>.</para>
118
119<screen><userinput><command>cat &gt; /etc/dhcpd.conf &lt;&lt; "EOF"</command>
120default-lease-time 72000;
121max-lease-time 144000;
122ddns-update-style ad-hoc;
123
124subnet <replaceable>[192.168.5.0]</replaceable> netmask <replaceable>[255.255.255.0]</replaceable> {
125 range <replaceable>[192.168.5.10] [192.168.5.240]</replaceable>;
126 option broadcast-address <replaceable>[195.168.5.255]</replaceable>;
127 option routers <replaceable>[192.168.5.1]</replaceable>;
128}
129<command>EOF</command></userinput></screen>
130
131<para>All addresses should be changed to meet your circumstance.</para>
132
133</sect3>
134
135</sect2>
136
137<sect2>
138<title>Contents</title>
139
140<para>The <application><acronym>DHCP</acronym></application> package contains
141<command>dhclient</command>, <command>dhcpd</command> and <command>dhcrelay</command>.</para>
142
143</sect2>
144
145<sect2><title>Description</title>
146
147<sect3><title>dhclient</title>
148<para><command>dhclient</command> is the implementation of the
149<acronym>DHCP</acronym> client.</para></sect3>
150
151<sect3><title>dhcpd</title>
152<para><command>dhcpd</command> implements Dynamic Host Configuration Protocol
153(<acronym>DHCP</acronym>) and Internet Bootstrap Protocol
154(<acronym>BOOTP</acronym>) requests for network addresses.</para></sect3>
155
156<sect3><title>dhcrelay</title>
157<para><command>dhcrelay</command> provides a means to accept <acronym>DHCP
158</acronym> and <acronym>BOOTP</acronym> requests on a subnet without a
159<acronym>DHCP</acronym> server and relay them to a <acronym>DHCP</acronym>
160server on another subnet.</para></sect3>
161
162</sect2>
[f45b1953]163
164</sect1>
165
Note: See TracBrowser for help on using the repository browser.