source: connect/dhcp/dhcpcd.xml@ b2782389

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b2782389 was 4839c17, checked in by Randy McMurchy <randy@…>, 19 years ago

Removed spaces from blank lines and excess spaces from the end of XML data

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

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