source: connect/dhcp/dhcpcd.xml@ ff769b8c

10.0 10.1 11.0 11.1 11.2 6.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 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since ff769b8c was ff769b8c, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated the XML sources to use DocBook XML DTD-4.4.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3656 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.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://www.phystech.com/ftp/dhcpcd-&dhcpcd-version;.tar.gz">
8 <!ENTITY dhcpcd-download-ftp "ftp://ftp.phystech.com/pub/dhcpcd-&dhcpcd-version;.tar.gz">
9 <!ENTITY dhcpcd-md5sum "dd627a121e43835bead3ffef5b1a72fd">
10 <!ENTITY dhcpcd-size "145 KB">
11 <!ENTITY dhcpcd-buildsize "944 KB">
12 <!ENTITY dhcpcd-time "0.04 SBU">
13]>
14
15<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="dhcpcd.html"?>
21<title>dhcpcd-&dhcpcd-version;</title>
22<indexterm zone="dhcpcd">
23<primary sortas="a-Dhcpcd">Dhcpcd</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>dhcpcd</application></title>
27
28<para>The <application>dhcpcd</application> package contains the
29<command>dhcpcd</command> client. This is useful for connecting your computer
30to a network which uses <acronym>DHCP</acronym> to assign network
31addresses.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
35<listitem><para>Download (HTTP): <ulink
36url="&dhcpcd-download-http;"/></para></listitem>
37<listitem><para>Download (FTP): <ulink
38url="&dhcpcd-download-ftp;"/></para></listitem>
39<listitem><para>Download MD5 sum: &dhcpcd-md5sum;</para></listitem>
40<listitem><para>Download size: &dhcpcd-size;</para></listitem>
41<listitem><para>Estimated disk space required:
42&dhcpcd-buildsize;</para></listitem>
43<listitem><para>Estimated build time:
44&dhcpcd-time;</para></listitem></itemizedlist>
45</sect3>
46
47<sect3><title>Additional downloads</title>
48<itemizedlist spacing='compact'>
49<listitem><para>Required Patch:
50<ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
51</listitem>
52</itemizedlist>
53</sect3>
54
55</sect2>
56
57<sect2>
58<title>Installation of <application>dhcpcd</application></title>
59
60<para>Install <application>dhcpcd</application> by running the following
61commands:</para>
62
63<screen><userinput><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch &amp;&amp;
64./configure --prefix="" --sysconfdir=/var/lib \
65--mandir=/usr/share/man &amp;&amp;
66make</command></userinput></screen>
67
68<para>Now, as the root user:</para>
69
70<screen><userinput role='root'><command>make install</command></userinput></screen>
71
72</sect2>
73
74<sect2>
75<title>Command explanations</title>
76
77<para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch</command>:
78<application>dhcpcd</application> unpatched puts all configuration
79and temporary files in <filename class='directory'>/etc/dhcpc</filename>. This
80becomes very annoying when <application>dhcpcd</application> tells you it's
81running and it's not. You look in
82<filename class="directory">/var/run</filename> for the
83<filename>PID</filename> file, but it's not there, the
84<filename>PID</filename> file that needs deleting is in
85<filename class="directory">/etc/dhcpc</filename>. This patch brings this
86program into <acronym>FHS</acronym> compliance, but more importantly, puts
87files where you expect them to be.</para>
88
89<para><parameter>--prefix=""</parameter>: There may be a good reason for
90abandoning the normal <acronym>BLFS</acronym> convention of using
91<parameter>--prefix=/usr</parameter> here. If you are installing
92<acronym>DHCP</acronym>, it is likely that it is
93required during the boot process and
94<filename class="directory">/usr</filename> may be network mounted, in which
95case <command>dhcpcd</command> wouldn't be available due to being on the
96network! Therefore, depending on your situation, you may want it to be
97installed in <filename class="directory">/sbin</filename> or
98<filename class="directory">/usr/sbin</filename>. This command installs to
99<filename class="directory">/sbin</filename>.</para>
100
101<para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
102configuration files in the <filename class="directory">/var/lib</filename>
103directory.</para>
104
105<para><parameter>--mandir=/usr/share/man</parameter>: This command installs
106the man pages to the <filename class="directory">/usr/share/man</filename>
107directory.</para>
108
109</sect2>
110
111<sect2>
112<title>Configuring <application>dhcpcd</application></title>
113
114<sect3 id="dhcpcd-config"><title>Config files</title>
115<para><filename>/var/lib/dhcpc/*</filename></para>
116<indexterm zone="dhcpcd dhcpcd-config">
117<primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary></indexterm>
118</sect3>
119
120<sect3 id="dhcpcd-init"><title>Configuration Information</title>
121
122<para>To configure <command>dhcpcd</command>, you need to first install
123the network service script,
124<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
125included in the <xref linkend="intro-important-bootscripts"/> package
126(as user root).</para>
127<indexterm zone="dhcpcd dhcpcd-init">
128<primary sortas="f-dhcpcd">dhcpcd (service script)</primary></indexterm>
129
130<screen><userinput role='root'><command>make install-service-dhcpcd</command></userinput></screen>
131
132<para id="dhcpcd-config2">Finally, as the root user create the
133<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
134configuration file using the following commands. Adjust appropriately
135for additional interfaces.</para>
136<indexterm zone="dhcpcd dhcpcd-config2">
137<primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary></indexterm>
138
139<screen><userinput role='root'><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
140cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"</command>
141ONBOOT="yes"
142SERVICE="dhcpcd"
143DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
144DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
145
146# Set PRINTIP="yes" to have the script print
147# the DHCP assigned IP address
148PRINTIP="no"
149
150# Set PRINTALL="yes" to print the DHCP assigned values for
151# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
152PRINTALL="no"
153<command>EOF</command></userinput></screen>
154
155<para>For more information on the appropriate <envar>DHCP_START</envar> and
156<envar>DHCP_STOP</envar> values, examine the man page for
157<command>dhcpcd</command>.</para>
158
159<note><para id="dhcpcd-config3">The default behavior of
160<command>dhcpcd</command> is to overwrite (after making backup copies)
161<filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
162<filename>/etc/ntp.conf</filename> with new files containing information from
163the <acronym>DHCP</acronym> server. If this is undesirable, review the
164<command>dhcpcd</command> man page for switches to add to the
165<envar>DHCP_START</envar> value.</para></note>
166<indexterm zone="dhcpcd dhcpcd-config3">
167<primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary></indexterm>
168<indexterm zone="dhcpcd dhcpcd-config3">
169<primary sortas="e-etc-yp.conf">/etc/yp.conf</primary></indexterm>
170<indexterm zone="dhcpcd dhcpcd-config3">
171<primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary></indexterm>
172
173</sect3>
174
175</sect2>
176
177<sect2>
178<title>Contents</title>
179
180<segmentedlist>
181<segtitle>Installed Program</segtitle>
182<segtitle>Installed Libraries</segtitle>
183<segtitle>Installed Directories</segtitle>
184
185<seglistitem>
186<seg>dhcpcd</seg>
187<seg>None</seg>
188<seg>/var/lib/dhcpc</seg>
189</seglistitem>
190</segmentedlist>
191
192<variablelist>
193<bridgehead renderas="sect3">Short Descriptions</bridgehead>
194<?dbfo list-presentation="list"?>
195
196<varlistentry id="dhcpcd-prog">
197<term><command>dhcpcd</command></term>
198<listitem><para>is an implementation of the <acronym>DHCP</acronym> client
199specified in <acronym>RFC</acronym>2131 and <acronym>RFC</acronym>1541
200(depending on which options are specified).</para>
201<indexterm zone="dhcpcd dhcpcd-prog">
202<primary sortas="b-dhcpcd">dhcpcd</primary>
203</indexterm></listitem>
204</varlistentry>
205</variablelist>
206
207</sect2>
208
209</sect1>
210
Note: See TracBrowser for help on using the repository browser.