source: connect/dhcp/dhcpcd.xml@ ed4e5b4

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 ed4e5b4 was ed4e5b4, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Updated to dhcpcd-2.0.5

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

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