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