source: connect/dhcp/dhcpcd.xml@ 9c90b1b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 9c90b1b was 5254d12, checked in by Randy McMurchy <randy@…>, 18 years ago

Standardized the id tag name of the Bootscripts package

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

  • Property mode set to 100644
File size: 8.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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-md5sum "dd627a121e43835bead3ffef5b1a72fd">
10 <!ENTITY dhcpcd-size "145 KB">
11 <!ENTITY dhcpcd-buildsize "944 KB">
12 <!ENTITY dhcpcd-time "0.04 SBU">
13]>
14
15<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
16 <?dbhtml filename="dhcpcd.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">dhcpcd-&dhcpcd-version;.tar</keyword>
23 <keyword role="ftpdir">dhcpcd</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Dhcpcd-&dhcpcd-version;</title>
28
29 <indexterm zone="dhcpcd">
30 <primary sortas="a-Dhcpcd">Dhcpcd</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Dhcpcd</title>
35
36 <para>The <application>dhcpcd</application> package contains the
37 <command>dhcpcd</command> client. This is useful for connecting your computer
38 to a network which uses DHCP to assign network addresses.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &dhcpcd-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &dhcpcd-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
63 <itemizedlist spacing='compact'>
64 <listitem>
65 <para>Required Patch:
66 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
67 </listitem>
68 </itemizedlist>
69
70 </sect2>
71
72 <sect2 role="installation">
73 <title>Installation of Dhcpcd</title>
74
75 <para>Install <application>dhcpcd</application> by running the following
76 commands:</para>
77
78<screen><userinput>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch &amp;&amp;
79./configure --prefix="" --sysconfdir=/var/lib &amp;&amp;
80make</userinput></screen>
81
82 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
83
84<screen role="root"><userinput>make install</userinput></screen>
85
86 </sect2>
87
88 <sect2 role="commands">
89 <title>Command Explanations</title>
90
91 <para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch</command>:
92 <application>dhcpcd</application> unpatched puts all configuration
93 and temporary files in <filename class='directory'>/etc/dhcpc</filename>. This
94 becomes very annoying when <application>dhcpcd</application> tells you it's
95 running and it's not. You look in
96 <filename class="directory">/var/run</filename> for the
97 <filename>PID</filename> file, but it's not there, the
98 <filename>PID</filename> file that needs deleting is in
99 <filename class="directory">/etc/dhcpc</filename>. This patch brings this
100 program into FHS compliance, but more importantly, puts
101 files where you expect them to be.</para>
102
103 <para><parameter>--prefix=""</parameter>: There may be a good reason for
104 abandoning the normal BLFS convention of using
105 <parameter>--prefix=/usr</parameter> here. If you are installing
106 DHCP, it is likely that it is
107 required during the boot process and
108 <filename class="directory">/usr</filename> may be network mounted, in which
109 case <command>dhcpcd</command> wouldn't be available due to being on the
110 network! Therefore, depending on your situation, you may want it to be
111 installed in <filename class="directory">/sbin</filename> or
112 <filename class="directory">/usr/sbin</filename>. This command installs to
113 <filename class="directory">/sbin</filename>.</para>
114
115 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
116 configuration files in the <filename class="directory">/var/lib</filename>
117 directory.</para>
118
119 </sect2>
120
121 <sect2 role="configuration">
122 <title>Configuring Dhcpcd</title>
123
124 <sect3 id="dhcpcd-config">
125 <title>Config Files</title>
126
127 <para><filename>/var/lib/dhcpc/*</filename></para>
128
129 <indexterm zone="dhcpcd dhcpcd-config">
130 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
131 </indexterm>
132
133 </sect3>
134
135 <sect3 id="dhcpcd-init">
136 <title>Configuration Information</title>
137
138 <para>To configure <command>dhcpcd</command>, you need to first install
139 the network service script,
140 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
141 included in the <xref linkend="bootscripts"/> package
142 (as user <systemitem class="username">root</systemitem>):</para>
143
144 <indexterm zone="dhcpcd dhcpcd-init">
145 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
146 </indexterm>
147
148<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
149
150 <para id="dhcpcd-config2">Finally, as the <systemitem
151 class="username">root</systemitem> user create the
152 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
153 configuration file using the following commands. Adjust appropriately
154 for additional interfaces:</para>
155
156 <indexterm zone="dhcpcd dhcpcd-config2">
157 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
158 </indexterm>
159
160<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
161cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
162<literal>ONBOOT="yes"
163SERVICE="dhcpcd"
164DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
165DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
166
167# Set PRINTIP="yes" to have the script print
168# the DHCP assigned IP address
169PRINTIP="no"
170
171# Set PRINTALL="yes" to print the DHCP assigned values for
172# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
173PRINTALL="no"</literal>
174EOF</userinput></screen>
175
176 <para>For more information on the appropriate <envar>DHCP_START</envar> and
177 <envar>DHCP_STOP</envar> values, examine the man page for
178 <command>dhcpcd</command>.</para>
179
180 <note>
181 <para id="dhcpcd-config3">The default behavior of
182 <command>dhcpcd</command> is to overwrite (after making backup copies)
183 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
184 <filename>/etc/ntp.conf</filename> with new files containing information from
185 the DHCP server. If this is undesirable, review the
186 <command>dhcpcd</command> man page for switches to add to the
187 <envar>DHCP_START</envar> value.</para>
188 </note>
189
190 <indexterm zone="dhcpcd dhcpcd-config3">
191 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
192 </indexterm>
193
194 <indexterm zone="dhcpcd dhcpcd-config3">
195 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
196 </indexterm>
197
198 <indexterm zone="dhcpcd dhcpcd-config3">
199 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
200 </indexterm>
201
202 </sect3>
203
204 </sect2>
205
206 <sect2 role="content">
207 <title>Contents</title>
208
209 <segmentedlist>
210 <segtitle>Installed Program</segtitle>
211 <segtitle>Installed Libraries</segtitle>
212 <segtitle>Installed Directory</segtitle>
213
214 <seglistitem>
215 <seg>dhcpcd</seg>
216 <seg>None</seg>
217 <seg>/var/lib/dhcpc</seg>
218 </seglistitem>
219 </segmentedlist>
220
221 <variablelist>
222 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
223 <?dbfo list-presentation="list"?>
224 <?dbhtml list-presentation="table"?>
225
226 <varlistentry id="dhcpcd-prog">
227 <term><command>dhcpcd</command></term>
228 <listitem>
229 <para>is an implementation of the DHCP client
230 specified in RFC2131 and RFC1541
231 (depending on which options are specified).</para>
232 <indexterm zone="dhcpcd dhcpcd-prog">
233 <primary sortas="b-dhcpcd">dhcpcd</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 </variablelist>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.