source: connect/dhcp/dhcpcd.xml@ 51ff7252

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 51ff7252 was 51ff7252, checked in by DJ Lucas <dj@…>, 18 years ago

added mandir switch to dhcpcd instructions.

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

  • Property mode set to 100644
File size: 7.9 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://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
8 <!ENTITY dhcpcd-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
9 <!ENTITY dhcpcd-md5sum "74ed2b738f92aeffd88da8ef1d7fb115">
10 <!ENTITY dhcpcd-size "124 KB">
11 <!ENTITY dhcpcd-buildsize "1.3 MB">
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<!--
63 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
64 <itemizedlist spacing='compact'>
65 <listitem>
66 <para>Required Patch:
67 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
68 </listitem>
69 </itemizedlist>
70-->
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of Dhcpcd</title>
76
77 <para>Install <application>dhcpcd</application> by running the following
78 commands:</para>
79
80<screen><userinput>./configure --prefix="" --sysconfdir=/var/lib \
81 --mandir=/usr/share/man &amp;&amp;
82make</userinput></screen>
83
84 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
85
86<screen role="root"><userinput>make install</userinput></screen>
87
88 </sect2>
89
90 <sect2 role="commands">
91 <title>Command Explanations</title>
92
93 <para><parameter>--prefix=""</parameter>: There may be a good reason for
94 abandoning the normal BLFS convention of using
95 <parameter>--prefix=/usr</parameter> here. If you are installing
96 DHCP, it is likely that it is
97 required during the boot process and
98 <filename class="directory">/usr</filename> may be network mounted, in which
99 case <command>dhcpcd</command> wouldn't be available due to being on the
100 network! Therefore, depending on your situation, you may want it to be
101 installed in <filename class="directory">/sbin</filename> or
102 <filename class="directory">/usr/sbin</filename>. This command installs to
103 <filename class="directory">/sbin</filename>.</para>
104
105 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
106 configuration and state files in the
107 <filename class="directory">/var/lib</filename> directory.</para>
108
109 </sect2>
110
111 <sect2 role="configuration">
112 <title>Configuring Dhcpcd</title>
113
114 <sect3 id="dhcpcd-config">
115 <title>Config Files</title>
116
117 <para><filename>/var/lib/dhcpc/*</filename></para>
118
119 <indexterm zone="dhcpcd dhcpcd-config">
120 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
121 </indexterm>
122
123 </sect3>
124
125 <sect3 id="dhcpcd-init">
126 <title>Configuration Information</title>
127
128 <para>To configure <command>dhcpcd</command>, you need to first install
129 the network service script,
130 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
131 included in the <xref linkend="bootscripts"/> package
132 (as user <systemitem class="username">root</systemitem>):</para>
133
134 <indexterm zone="dhcpcd dhcpcd-init">
135 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
136 </indexterm>
137
138<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
139
140 <para id="dhcpcd-config2">Finally, as the <systemitem
141 class="username">root</systemitem> user create the
142 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
143 configuration file using the following commands. Adjust appropriately
144 for additional interfaces:</para>
145
146 <indexterm zone="dhcpcd dhcpcd-config2">
147 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
148 </indexterm>
149
150<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
151cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
152<literal>ONBOOT="yes"
153SERVICE="dhcpcd"
154DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
155DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
156
157# Set PRINTIP="yes" to have the script print
158# the DHCP assigned IP address
159PRINTIP="no"
160
161# Set PRINTALL="yes" to print the DHCP assigned values for
162# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
163PRINTALL="no"</literal>
164EOF</userinput></screen>
165
166 <para>For more information on the appropriate <envar>DHCP_START</envar> and
167 <envar>DHCP_STOP</envar> values, examine the man page for
168 <command>dhcpcd</command>.</para>
169
170 <note>
171 <para id="dhcpcd-config3">The default behavior of
172 <command>dhcpcd</command> is to overwrite (after making backup copies)
173 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
174 <filename>/etc/ntp.conf</filename> with new files containing information from
175 the DHCP server. If this is undesirable, review the
176 <command>dhcpcd</command> man page for switches to add to the
177 <envar>DHCP_START</envar> value.</para>
178 </note>
179
180 <indexterm zone="dhcpcd dhcpcd-config3">
181 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
182 </indexterm>
183
184 <indexterm zone="dhcpcd dhcpcd-config3">
185 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
186 </indexterm>
187
188 <indexterm zone="dhcpcd dhcpcd-config3">
189 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
190 </indexterm>
191
192 </sect3>
193
194 </sect2>
195
196 <sect2 role="content">
197 <title>Contents</title>
198
199 <segmentedlist>
200 <segtitle>Installed Program</segtitle>
201 <segtitle>Installed Libraries</segtitle>
202 <segtitle>Installed Directory</segtitle>
203
204 <seglistitem>
205 <seg>dhcpcd</seg>
206 <seg>None</seg>
207 <seg>/var/lib/dhcpc</seg>
208 </seglistitem>
209 </segmentedlist>
210
211 <variablelist>
212 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
213 <?dbfo list-presentation="list"?>
214 <?dbhtml list-presentation="table"?>
215
216 <varlistentry id="dhcpcd-prog">
217 <term><command>dhcpcd</command></term>
218 <listitem>
219 <para>is an implementation of the DHCP client
220 specified in RFC2131 and RFC1541
221 (depending on which options are specified).</para>
222 <indexterm zone="dhcpcd dhcpcd-prog">
223 <primary sortas="b-dhcpcd">dhcpcd</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 </variablelist>
229
230 </sect2>
231
232</sect1>
Note: See TracBrowser for help on using the repository browser.