source: connect/dhcp/dhcpcd.xml@ f153e22

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 f153e22 was a5404840, checked in by Dan Nichilson <dnicholson@…>, 17 years ago

Updated to dhcpcd-3.0.17

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

  • Property mode set to 100644
File size: 7.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY dhcpcd-download-http "http://download.berlios.de/dhcpcd/dhcpcd-&dhcpcd-version;.tar.bz2">
8 <!ENTITY dhcpcd-download-ftp "ftp://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
9 <!ENTITY dhcpcd-md5sum "e9100e53f64ca1f9fb0d392c3a623738">
10 <!ENTITY dhcpcd-size "32.5 KB">
11 <!ENTITY dhcpcd-buildsize "0.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 </sect1info>
22
23 <title>Dhcpcd-&dhcpcd-version;</title>
24
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><application>dhcpcd</application>is an implementation of the
33 DHCP client specified in RFC2131. This is useful for connecting
34 your computer to a network which uses DHCP to assign network
35 addresses.</para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &dhcpcd-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &dhcpcd-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <para condition="html" role="usernotes">User Notes:
60 <ulink url="&blfs-wiki;/dhcpcd"/></para>
61
62 </sect2>
63
64 <sect2 role="installation">
65 <title>Installation of Dhcpcd</title>
66
67 <para>Install <application>dhcpcd</application> by running the following
68 commands:</para>
69
70<screen><userinput>make</userinput></screen>
71
72 <para>This package does not come with a test suite.</para>
73
74 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
75
76<screen role="root"><userinput>make install</userinput></screen>
77
78 </sect2>
79
80 <sect2 role="commands">
81 <title>Command Explanations</title>
82
83 <para><parameter>--prefix=""</parameter>: There may be a good reason for
84 abandoning the normal BLFS convention of using
85 <parameter>--prefix=/usr</parameter> here. If you are installing
86 DHCP, it is likely that it is
87 required during the boot process and
88 <filename class="directory">/usr</filename> may be network mounted, in which
89 case <command>dhcpcd</command> wouldn't be available due to being on the
90 network! Therefore, depending on your situation, you may want it to be
91 installed in <filename class="directory">/sbin</filename> or
92 <filename class="directory">/usr/sbin</filename>. This command installs to
93 <filename class="directory">/sbin</filename>.</para>
94
95 </sect2>
96
97 <sect2 role="configuration">
98 <title>Configuring Dhcpcd</title>
99
100 <sect3 id="dhcpcd-config">
101 <title>Config Files</title>
102
103 <para><filename>/etc/dhcpcd.sh</filename></para>
104
105 <indexterm zone="dhcpcd dhcpcd-config">
106 <primary sortas="e-etc-dhcpc">/etc/dhcpcd.sh</primary>
107 </indexterm>
108
109 </sect3>
110
111 <sect3 id="dhcpcd-init">
112 <title>Configuration Information</title>
113
114 <para>To configure <command>dhcpcd</command>, you need to first install
115 the network service script,
116 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
117 included in the <xref linkend="bootscripts"/> package
118 (as user <systemitem class="username">root</systemitem>):</para>
119
120 <indexterm zone="dhcpcd dhcpcd-init">
121 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
122 </indexterm>
123
124<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
125
126 <para>Whenever <command>dhcpcd</command> configures or shuts down
127 a network interface, it executes the script
128 <filename>/etc/dhcpcd.sh</filename>. This script can be
129 customized to perform additional actions for the network interface.
130 See the man page of <command>dhcpcd</command> for more details. An
131 example file is shipped in the tarball which can be used to send
132 the interface details to syslog.</para>
133
134 <para id="dhcpcd-config2">Finally, as the <systemitem
135 class="username">root</systemitem> user create the
136 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
137 configuration file using the following commands. Adjust appropriately
138 for additional interfaces:</para>
139
140 <indexterm zone="dhcpcd dhcpcd-config2">
141 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
142 </indexterm>
143
144<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
145cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
146<literal>ONBOOT="yes"
147SERVICE="dhcpcd"
148DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
149DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"
150
151# Set PRINTIP="yes" to have the script print
152# the DHCP assigned IP address
153PRINTIP="no"
154
155# Set PRINTALL="yes" to print the DHCP assigned values for
156# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
157PRINTALL="no"</literal>
158EOF</userinput></screen>
159
160 <para>For more information on the appropriate <envar>DHCP_START</envar> and
161 <envar>DHCP_STOP</envar> values, examine the man page for
162 <command>dhcpcd</command>.</para>
163
164 <note>
165 <para id="dhcpcd-config3">The default behavior of
166 <command>dhcpcd</command> is to overwrite (after making backup copies)
167 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
168 <filename>/etc/ntp.conf</filename> with new files containing information from
169 the DHCP server. If this is undesirable, review the
170 <command>dhcpcd</command> man page for switches to add to the
171 <envar>DHCP_START</envar> value.</para>
172 </note>
173
174 <indexterm zone="dhcpcd dhcpcd-config3">
175 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
176 </indexterm>
177
178 <indexterm zone="dhcpcd dhcpcd-config3">
179 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
180 </indexterm>
181
182 <indexterm zone="dhcpcd dhcpcd-config3">
183 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
184 </indexterm>
185
186 </sect3>
187
188 </sect2>
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Program</segtitle>
195 <segtitle>Installed Libraries</segtitle>
196 <segtitle>Installed Directory</segtitle>
197
198 <seglistitem>
199 <seg>dhcpcd</seg>
200 <seg>None</seg>
201 <seg>None</seg>
202 </seglistitem>
203 </segmentedlist>
204
205 <variablelist>
206 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
207 <?dbfo list-presentation="list"?>
208 <?dbhtml list-presentation="table"?>
209
210 <varlistentry id="dhcpcd-prog">
211 <term><command>dhcpcd</command></term>
212 <listitem>
213 <para>is an implementation of the DHCP client specified
214 in RFC2131 (when -r option is not specified) and RFC1541
215 (when -r option is specified).</para>
216 <indexterm zone="dhcpcd dhcpcd-prog">
217 <primary sortas="b-dhcpcd">dhcpcd</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.