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 "90d6df62d663bdea65d5905023377b39">
|
---|
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="configuration">
|
---|
81 | <title>Configuring dhcpcd</title>
|
---|
82 |
|
---|
83 | <sect3 id="dhcpcd-config">
|
---|
84 | <title>Config Files</title>
|
---|
85 |
|
---|
86 | <para><filename>/etc/dhcpcd.sh</filename></para>
|
---|
87 |
|
---|
88 | <indexterm zone="dhcpcd dhcpcd-config">
|
---|
89 | <primary sortas="e-etc-dhcpcd-sh">/etc/dhcpcd.sh</primary>
|
---|
90 | </indexterm>
|
---|
91 |
|
---|
92 | </sect3>
|
---|
93 |
|
---|
94 | <sect3 id="dhcpcd-init">
|
---|
95 | <title>Configuration Information</title>
|
---|
96 |
|
---|
97 | <para>To configure <command>dhcpcd</command>, you need to first install
|
---|
98 | the network service script,
|
---|
99 | <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
|
---|
100 | included in the <xref linkend="bootscripts"/> package
|
---|
101 | (as user <systemitem class="username">root</systemitem>):</para>
|
---|
102 |
|
---|
103 | <indexterm zone="dhcpcd dhcpcd-init">
|
---|
104 | <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
|
---|
105 | </indexterm>
|
---|
106 |
|
---|
107 | <screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
|
---|
108 |
|
---|
109 | <para>Whenever <command>dhcpcd</command> configures or shuts down
|
---|
110 | a network interface, it executes the script
|
---|
111 | <filename>/etc/dhcpcd.sh</filename>. This script can be
|
---|
112 | customized to perform additional actions for the network interface.
|
---|
113 | See the man page of <command>dhcpcd</command> for more details. An
|
---|
114 | example file is shipped in the tarball which can be used to send
|
---|
115 | the interface details to syslog.</para>
|
---|
116 |
|
---|
117 | <para id="dhcpcd-config2">Finally, as the <systemitem
|
---|
118 | class="username">root</systemitem> user create the
|
---|
119 | <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
|
---|
120 | configuration file using the following commands. Adjust appropriately
|
---|
121 | for additional interfaces:</para>
|
---|
122 |
|
---|
123 | <indexterm zone="dhcpcd dhcpcd-config2">
|
---|
124 | <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
|
---|
125 | </indexterm>
|
---|
126 |
|
---|
127 | <screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &&
|
---|
128 | cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"
|
---|
129 | <literal>ONBOOT="yes"
|
---|
130 | SERVICE="dhcpcd"
|
---|
131 | DHCP_START="<replaceable><insert appropriate start options here></replaceable>"
|
---|
132 | DHCP_STOP="-k <replaceable><insert additional stop options here></replaceable>"
|
---|
133 |
|
---|
134 | # Set PRINTIP="yes" to have the script print
|
---|
135 | # the DHCP assigned IP address
|
---|
136 | PRINTIP="no"
|
---|
137 |
|
---|
138 | # Set PRINTALL="yes" to print the DHCP assigned values for
|
---|
139 | # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
|
---|
140 | PRINTALL="no"</literal>
|
---|
141 | EOF</userinput></screen>
|
---|
142 |
|
---|
143 | <para>For more information on the appropriate <envar>DHCP_START</envar> and
|
---|
144 | <envar>DHCP_STOP</envar> values, examine the man page for
|
---|
145 | <command>dhcpcd</command>.</para>
|
---|
146 |
|
---|
147 | <note>
|
---|
148 | <para id="dhcpcd-config3">The default behavior of
|
---|
149 | <command>dhcpcd</command> is to overwrite (after making backup copies)
|
---|
150 | <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
|
---|
151 | <filename>/etc/ntp.conf</filename> with new files containing information from
|
---|
152 | the DHCP server. If this is undesirable, review the
|
---|
153 | <command>dhcpcd</command> man page for switches to add to the
|
---|
154 | <envar>DHCP_START</envar> value.</para>
|
---|
155 | </note>
|
---|
156 |
|
---|
157 | <indexterm zone="dhcpcd dhcpcd-config3">
|
---|
158 | <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
|
---|
159 | </indexterm>
|
---|
160 |
|
---|
161 | <indexterm zone="dhcpcd dhcpcd-config3">
|
---|
162 | <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
|
---|
163 | </indexterm>
|
---|
164 |
|
---|
165 | <indexterm zone="dhcpcd dhcpcd-config3">
|
---|
166 | <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
|
---|
167 | </indexterm>
|
---|
168 |
|
---|
169 | </sect3>
|
---|
170 |
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="content">
|
---|
174 | <title>Contents</title>
|
---|
175 |
|
---|
176 | <segmentedlist>
|
---|
177 | <segtitle>Installed Program</segtitle>
|
---|
178 | <segtitle>Installed Libraries</segtitle>
|
---|
179 | <segtitle>Installed Directory</segtitle>
|
---|
180 |
|
---|
181 | <seglistitem>
|
---|
182 | <seg>dhcpcd</seg>
|
---|
183 | <seg>None</seg>
|
---|
184 | <seg>None</seg>
|
---|
185 | </seglistitem>
|
---|
186 | </segmentedlist>
|
---|
187 |
|
---|
188 | <variablelist>
|
---|
189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
190 | <?dbfo list-presentation="list"?>
|
---|
191 | <?dbhtml list-presentation="table"?>
|
---|
192 |
|
---|
193 | <varlistentry id="dhcpcd-prog">
|
---|
194 | <term><command>dhcpcd</command></term>
|
---|
195 | <listitem>
|
---|
196 | <para>is an implementation of the DHCP client specified
|
---|
197 | in RFC2131 (when -r option is not specified) and RFC1541
|
---|
198 | (when -r option is specified).</para>
|
---|
199 | <indexterm zone="dhcpcd dhcpcd-prog">
|
---|
200 | <primary sortas="b-dhcpcd">dhcpcd</primary>
|
---|
201 | </indexterm>
|
---|
202 | </listitem>
|
---|
203 | </varlistentry>
|
---|
204 |
|
---|
205 | </variablelist>
|
---|
206 |
|
---|
207 | </sect2>
|
---|
208 |
|
---|
209 | </sect1>
|
---|