source: connect/dhcp/dhcpcd.xml@ 6473e74

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

Removed excess EOL whitespace from all package instructions except for the 'x' chapters

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