source: networking/connect/dhcpcd.xml@ 6d15c62

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 6d15c62 was 6d15c62, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Rearrange package organization

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

  • Property mode set to 100644
File size: 7.3 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://roy.marples.name/downloads/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 "832e3cd6bfcaff64e9476e0ff7849e8f">
10 <!ENTITY dhcpcd-size "76 KB">
11 <!ENTITY dhcpcd-buildsize "0.9 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 &lfs70_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &dhcpcd-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &dhcpcd-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <para condition="html" role="usernotes">User Notes:
62 <ulink url="&blfs-wiki;/dhcpcd"/></para>
63
64 </sect2>
65
66 <sect2 role="installation">
67 <title>Installation of dhcpcd</title>
68
69 <para>Install <application>dhcpcd</application> by running the following
70 commands:</para>
71
72<screen><userinput>./configure --libexecdir=/lib/dhcpcd \
73 --dbdir=/run \
74 --sysconfdir=/etc &amp;&amp;
75make</userinput></screen>
76
77 <para>This package does not come with a test suite.</para>
78
79 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
80
81<screen><userinput>make install</userinput></screen>
82
83 <para>By default, a plain text lease info file isn't created but the
84 <application>dhcpcd</application> provides a hook which can be used for creating
85 such a file. Install the hook by running the following
86 commands as the <systemitem class="username">root</systemitem> user:</para>
87
88<screen><userinput>sed -i "s;/var/lib;/run;g" dhcpcd-hooks/50-dhcpcd-compat &amp;&amp;
89install -v -m 644 dhcpcd-hooks/50-dhcpcd-compat /lib/dhcpcd/dhcpcd-hooks/</userinput></screen>
90
91 </sect2>
92
93 <sect2 role="configuration">
94 <title>Configuring dhcpcd</title>
95
96 <sect3 id="dhcpcd-config">
97 <title>Config Files</title>
98
99 <para><filename>/etc/dhcpcd/dhcpcd.conf</filename></para>
100
101 <indexterm zone="dhcpcd dhcpcd-config">
102 <primary sortas="e-etc-dhcpcd-dhcpcd-conf">/etc/dhcpcd/dhcpcd.conf</primary>
103 </indexterm>
104
105 </sect3>
106
107 <sect3 id="dhcpcd-init">
108 <title>Configuration Information</title>
109
110 <para>To configure <command>dhcpcd</command>, you need to first install
111 the network service script,
112 <filename>/lib/services/dhcpcd</filename>
113 included in the <xref linkend="bootscripts"/> package
114 (as user <systemitem class="username">root</systemitem>):</para>
115
116 <indexterm zone="dhcpcd dhcpcd-init">
117 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
118 </indexterm>
119
120<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
121
122 <para>Whenever <command>dhcpcd</command> configures or shuts down
123 a network interface, it executes hook scripts. For more details
124 about those scripts, see the <command>dhcpcd-run-hooks</command> and
125 <command>dhcpcd</command> man pages.</para>
126
127 <para id="dhcpcd-config2">Finally, as the <systemitem
128 class="username">root</systemitem> user create the
129 <filename>/etc/sysconfig/ifconfig.eth0</filename>
130 configuration file using the following commands. Adjust appropriately
131 for additional interfaces:</para>
132
133 <indexterm zone="dhcpcd dhcpcd-config2">
134 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/ifconfig.eth0 (dhcpcd)</primary>
135 </indexterm>
136
137<screen role='root'><userinput>cat &gt; /etc/sysconfig/ifconfig.eth0 &lt;&lt; "EOF"
138<literal>ONBOOT="yes"
139IFACE="eth0"
140SERVICE="dhcpcd"
141DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
142DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"</literal>
143EOF</userinput></screen>
144
145 <para>For more information on the appropriate <envar>DHCP_START</envar> and
146 <envar>DHCP_STOP</envar> values, examine the man page for
147 <command>dhcpcd</command>.</para>
148
149 <note>
150
151 <para id="dhcpcd-config3">The default behavior of
152 <command>dhcpcd</command> sets the hostname and mtu settings. It also
153 overwrites <filename>/etc/resolv.conf</filename> and
154 <filename>/etc/ntp.conf</filename>.
155
156 These modifications to system files and settings on system
157 configuration files are done by hooks which are stored in <filename
158 class="directory">/lib/dhcpcd/dhcpcd-hooks</filename>.
159
160 Setup <command>dhcpcd</command> by removing or adding hooks from/to
161 that directory. The execution of hooks can be disabled by using the
162 <option>--nohook</option> (<option>-C</option>) command line option or
163 by the <option>nohook</option> option in the
164 <filename>/etc/dhcpcd.conf</filename> file.</para>
165
166 <para>Review the <command>dhcpcd</command> man page for switches to add
167 to the <envar>DHCP_START</envar> value.</para>
168
169 </note>
170
171 <indexterm zone="dhcpcd dhcpcd-config3">
172 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
173 </indexterm>
174 </sect3>
175
176 </sect2>
177
178 <sect2 role="content">
179 <title>Contents</title>
180
181 <segmentedlist>
182 <segtitle>Installed Program</segtitle>
183 <segtitle>Installed Libraries</segtitle>
184 <segtitle>Installed Directory</segtitle>
185
186 <seglistitem>
187 <seg>dhcpcd</seg>
188 <seg>None</seg>
189 <seg>/lib/dhcpcd</seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="dhcpcd-prog">
199 <term><command>dhcpcd</command></term>
200 <listitem>
201 <para>is an implementation of the DHCP client specified
202 in RFC2131.</para>
203 <indexterm zone="dhcpcd dhcpcd-prog">
204 <primary sortas="b-dhcpcd">dhcpcd</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 </variablelist>
210
211 </sect2>
212
213</sect1>
Note: See TracBrowser for help on using the repository browser.