source: connect/dhcp/dhcpcd.xml@ 518538f

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 518538f was 518538f, checked in by Randy McMurchy <randy@…>, 19 years ago

Standardized the 'Estimated disk space required' text

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

  • Property mode set to 100644
File size: 6.3 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 dhcpcd-download-http "http://www.phystech.com/ftp/dhcpcd-&dhcpcd-version;.tar.gz">
8 <!ENTITY dhcpcd-download-ftp "ftp://ftp.phystech.com/pub/dhcpcd-&dhcpcd-version;.tar.gz">
9 <!ENTITY dhcpcd-size "145 KB">
10 <!ENTITY dhcpcd-buildsize "868 KB">
11 <!ENTITY dhcpcd-time "0.04 SBU">
12]>
13
14<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="dhcpcd.html"?>
20<title>dhcpcd-&dhcpcd-version;</title>
21
22<sect2>
23<title>Introduction to <application>dhcpcd</application></title>
24
25<para>The <application>dhcpcd</application> package contains the
26<command>dhcpcd</command> client. This is useful for connecting your computer
27to a network which uses <acronym>DHCP</acronym> to assign network addresses.
28</para>
29
30<sect3><title>Package information</title>
31<itemizedlist spacing='compact'>
32<listitem><para>Download (HTTP): <ulink
33url="&dhcpcd-download-http;"/></para></listitem>
34<listitem><para>Download (FTP): <ulink
35url="&dhcpcd-download-ftp;"/></para></listitem>
36<listitem><para>Download size: &dhcpcd-size;</para></listitem>
37<listitem><para>Estimated disk space required:
38&dhcpcd-buildsize;</para></listitem>
39<listitem><para>Estimated build time:
40&dhcpcd-time;</para></listitem></itemizedlist>
41</sect3>
42
43<sect3><title>Additional downloads</title>
44<itemizedlist spacing='compact'>
45<listitem><para>Required Patch:
46<ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para></listitem>
47</itemizedlist>
48</sect3>
49
50</sect2>
51
52<sect2>
53<title>Installation of <application>dhcpcd</application></title>
54
55<para>Install <application>dhcpcd</application> by running the following
56commands:</para>
57
58<screen><userinput><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch &amp;&amp;
59./configure --prefix="" --sysconfdir=/var/lib \
60--mandir=/usr/share/man &amp;&amp;
61make &amp;&amp;
62make install</command></userinput></screen>
63
64</sect2>
65
66<sect2>
67<title>Command explanations</title>
68
69<para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch
70</command>: <application>Dhcpcd</application> unpatched puts all configuration
71and temporary files in <filename>/etc/dhcpc</filename>. This becomes very
72annoying when <application>dhcpcd</application> tells you it's running and it's
73not. You look in <filename class="directory">/var/run</filename> for
74the <filename>PID</filename> file, but it's not
75there, the <filename>PID</filename> file that needs deleting is in
76<filename class="directory">/etc/dhcpc</filename>.
77This patch brings this program into <acronym>FHS</acronym> compliance, but more
78importantly, puts files where you expect them to be.</para>
79
80<para><parameter>--prefix=""</parameter>: There may be a good reason for
81abandoning the normal <acronym>BLFS</acronym> convention of using
82<parameter>--prefix=/usr</parameter> here. If you are installing
83<acronym>DHCP</acronym>, it is likely that it is
84required during the boot process and
85<filename class="directory">/usr</filename> may be network
86mounted, in which case <command>dhcpcd</command> wouldn't be available due to
87being on the network! Therefore, depending on your situation, you may want it
88to be installed in <filename class="directory">/sbin</filename> or
89<filename class="directory">/usr/sbin</filename>. This command installs to
90<filename class="directory">/sbin</filename>.</para>
91
92<para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
93configuration files in the <filename class="directory">/var/lib</filename>
94directory.</para>
95
96<para><parameter>--mandir=/usr/share/man</parameter>: This command installs
97the man pages to the <filename class="directory">/usr/share/man</filename>
98directory.</para>
99
100</sect2>
101
102<sect2>
103<title>Configuring <application>dhcpcd</application></title>
104
105<sect3><title>Config files</title>
106<para><filename>/var/lib/dhcpc/*</filename></para></sect3>
107
108<sect3><title>Configuration Information</title>
109
110<para>To configure <command>dhcpcd</command>, you need to first install
111the network service script,
112<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
113included in the <xref linkend="intro-important-bootscripts"/> package.</para>
114
115<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
116
117<para>Finally, create the
118<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
119configuration file using the following commands. Adjust appropriately
120for additional interfaces.</para>
121
122<screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
123cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"</command>
124ONBOOT="yes"
125SERVICE="dhcpcd"
126DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
127DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
128
129# Set PRINTIP="yes" to have the script print the DHCP assigned IP address.
130PRINTIP="no"
131
132# Set PRINTALL="yes" to print the DHCP assigned values for IP, SM, DG, and 1st NS.
133# This requires PRINTIP="yes"
134PRINTALL="no"
135<command>EOF</command></userinput></screen>
136
137<para>For more information on the appropriate
138<envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
139values, examine the man page for <command>dhcpcd</command>.</para>
140
141<note><para>The default behavior of <command>dhcpcd</command> is to overwrite
142(after making backup copies) <filename>/etc/resolv.conf</filename>,
143<filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename>
144with new files containing information from the <acronym>DHCP</acronym>
145server. If this is undesirable, review the <command>dhcpcd</command>
146man page for switches to add to the <envar>DHCP_START</envar>
147value.</para></note>
148
149</sect3>
150
151</sect2>
152
153<sect2>
154<title>Contents</title>
155
156<para>The <application>dhcpcd</application> package contains
157<command>dhcpcd</command>.</para>
158
159</sect2>
160
161<sect2><title>Description</title>
162
163<sect3><title>dhcpcd</title>
164<para><command>dhcpcd</command> is an implementation of the
165<acronym>DHCP</acronym> client specified in <acronym>RFC</acronym>2131 and
166<acronym>RFC</acronym>1541 (depending on which options are specified).</para>
167</sect3>
168
169</sect2>
170
171</sect1>
172
Note: See TracBrowser for help on using the repository browser.