source: connect/dhcp/dhcpcd.xml@ 0aeb696

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 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5951 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 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY dhcpcd-download-http "http://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
20 <!ENTITY dhcpcd-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
21 <!ENTITY dhcpcd-md5sum "e2e5cd9b8824c7b1d37a7c441b83515f">
22 <!ENTITY dhcpcd-size "128 KB">
23 <!ENTITY dhcpcd-buildsize "1.3 MB">
24 <!ENTITY dhcpcd-time "less than 0.1 SBU">
25]>
26
27<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
28 <?dbhtml filename="dhcpcd.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 <keywordset>
34 <keyword role="package">dhcpcd-&dhcpcd-version;.tar</keyword>
35 <keyword role="ftpdir">dhcpcd</keyword>
36 </keywordset>
37 </sect1info>
38
39 <title>Dhcpcd-&dhcpcd-version;</title>
40
41 <indexterm zone="dhcpcd">
42 <primary sortas="a-Dhcpcd">Dhcpcd</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to Dhcpcd</title>
47
48 <para>The <application>dhcpcd</application> package contains the
49 <command>dhcpcd</command> client. This is useful for connecting your computer
50 to a network which uses DHCP to assign network addresses.</para>
51
52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &dhcpcd-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &dhcpcd-time;</para>
71 </listitem>
72 </itemizedlist>
73
74<!--
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing='compact'>
77 <listitem>
78 <para>Required Patch:
79 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
80 </listitem>
81 </itemizedlist>
82-->
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/dhcpcd"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Dhcpcd</title>
91
92 <para>Install <application>dhcpcd</application> by running the following
93 commands:</para>
94
95<screen><userinput>./configure --prefix="" --sysconfdir=/var/lib \
96 --mandir=/usr/share/man &amp;&amp;
97make</userinput></screen>
98
99 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
100
101<screen role="root"><userinput>make install</userinput></screen>
102
103 </sect2>
104
105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <para><parameter>--prefix=""</parameter>: There may be a good reason for
109 abandoning the normal BLFS convention of using
110 <parameter>--prefix=/usr</parameter> here. If you are installing
111 DHCP, it is likely that it is
112 required during the boot process and
113 <filename class="directory">/usr</filename> may be network mounted, in which
114 case <command>dhcpcd</command> wouldn't be available due to being on the
115 network! Therefore, depending on your situation, you may want it to be
116 installed in <filename class="directory">/sbin</filename> or
117 <filename class="directory">/usr/sbin</filename>. This command installs to
118 <filename class="directory">/sbin</filename>.</para>
119
120 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
121 configuration and state files in the
122 <filename class="directory">/var/lib</filename> directory.</para>
123
124 </sect2>
125
126 <sect2 role="configuration">
127 <title>Configuring Dhcpcd</title>
128
129 <sect3 id="dhcpcd-config">
130 <title>Config Files</title>
131
132 <para><filename>/var/lib/dhcpc/*</filename></para>
133
134 <indexterm zone="dhcpcd dhcpcd-config">
135 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
136 </indexterm>
137
138 </sect3>
139
140 <sect3 id="dhcpcd-init">
141 <title>Configuration Information</title>
142
143 <para>To configure <command>dhcpcd</command>, you need to first install
144 the network service script,
145 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
146 included in the <xref linkend="bootscripts"/> package
147 (as user <systemitem class="username">root</systemitem>):</para>
148
149 <indexterm zone="dhcpcd dhcpcd-init">
150 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
151 </indexterm>
152
153<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
154
155 <para id="dhcpcd-config2">Finally, as the <systemitem
156 class="username">root</systemitem> user create the
157 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
158 configuration file using the following commands. Adjust appropriately
159 for additional interfaces:</para>
160
161 <indexterm zone="dhcpcd dhcpcd-config2">
162 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
163 </indexterm>
164
165<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
166cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
167<literal>ONBOOT="yes"
168SERVICE="dhcpcd"
169DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
170DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"
171
172# Set PRINTIP="yes" to have the script print
173# the DHCP assigned IP address
174PRINTIP="no"
175
176# Set PRINTALL="yes" to print the DHCP assigned values for
177# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
178PRINTALL="no"</literal>
179EOF</userinput></screen>
180
181 <para>For more information on the appropriate <envar>DHCP_START</envar> and
182 <envar>DHCP_STOP</envar> values, examine the man page for
183 <command>dhcpcd</command>.</para>
184
185 <note>
186 <para id="dhcpcd-config3">The default behavior of
187 <command>dhcpcd</command> is to overwrite (after making backup copies)
188 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
189 <filename>/etc/ntp.conf</filename> with new files containing information from
190 the DHCP server. If this is undesirable, review the
191 <command>dhcpcd</command> man page for switches to add to the
192 <envar>DHCP_START</envar> value.</para>
193 </note>
194
195 <indexterm zone="dhcpcd dhcpcd-config3">
196 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
197 </indexterm>
198
199 <indexterm zone="dhcpcd dhcpcd-config3">
200 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
201 </indexterm>
202
203 <indexterm zone="dhcpcd dhcpcd-config3">
204 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
205 </indexterm>
206
207 </sect3>
208
209 </sect2>
210
211 <sect2 role="content">
212 <title>Contents</title>
213
214 <segmentedlist>
215 <segtitle>Installed Program</segtitle>
216 <segtitle>Installed Libraries</segtitle>
217 <segtitle>Installed Directory</segtitle>
218
219 <seglistitem>
220 <seg>dhcpcd</seg>
221 <seg>None</seg>
222 <seg>/var/lib/dhcpc</seg>
223 </seglistitem>
224 </segmentedlist>
225
226 <variablelist>
227 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
228 <?dbfo list-presentation="list"?>
229 <?dbhtml list-presentation="table"?>
230
231 <varlistentry id="dhcpcd-prog">
232 <term><command>dhcpcd</command></term>
233 <listitem>
234 <para>is an implementation of the DHCP client
235 specified in RFC2131 and RFC1541
236 (depending on which options are specified).</para>
237 <indexterm zone="dhcpcd dhcpcd-prog">
238 <primary sortas="b-dhcpcd">dhcpcd</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 </variablelist>
244
245 </sect2>
246
247</sect1>
Note: See TracBrowser for help on using the repository browser.