source: connect/dhcp/dhcpcd.xml@ 7ee9849

10.0 10.1 11.0 11.1 11.2 6.0 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 7ee9849 was 7ee9849, checked in by Randy McMurchy <randy@…>, 18 years ago

Shortened line lengths in various package instructions to fit in the PDF viewable area (through 450 pages)

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

  • Property mode set to 100644
File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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-size "145 KB">
10 <!ENTITY dhcpcd-buildsize "868 KB">
11 <!ENTITY dhcpcd-time "0.04 SBU">
12]>
13
14<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="dhcpcd.html"?>
20<title>dhcpcd-&dhcpcd-version;</title>
21
22<sect2>
23<title>Introduction to <application>dhcpcd</application></title>
24
25<para>The <application>dhcpcd</application> package contains the
26<command>dhcpcd</command> client. This is useful for connecting your computer
27to a network which uses <acronym>DHCP</acronym> to assign network addresses.
28</para>
29
30<sect3><title>Package information</title>
31<itemizedlist spacing='compact'>
32<listitem><para>Download (HTTP): <ulink
33url="&dhcpcd-download-http;"/></para></listitem>
34<listitem><para>Download (FTP): <ulink
35url="&dhcpcd-download-ftp;"/></para></listitem>
36<listitem><para>Download size: &dhcpcd-size;</para></listitem>
37<listitem><para>Estimated disk space required:
38&dhcpcd-buildsize;</para></listitem>
39<listitem><para>Estimated build time:
40&dhcpcd-time;</para></listitem></itemizedlist>
41</sect3>
42
43<sect3><title>Additional downloads</title>
44<itemizedlist spacing='compact'>
45<listitem><para>Required Patch:
46<ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
47</listitem>
48</itemizedlist>
49</sect3>
50
51</sect2>
52
53<sect2>
54<title>Installation of <application>dhcpcd</application></title>
55
56<para>Install <application>dhcpcd</application> by running the following
57commands:</para>
58
59<screen><userinput><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch &amp;&amp;
60./configure --prefix="" --sysconfdir=/var/lib \
61--mandir=/usr/share/man &amp;&amp;
62make &amp;&amp;
63make install</command></userinput></screen>
64
65</sect2>
66
67<sect2>
68<title>Command explanations</title>
69
70<para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch
71</command>: <application>Dhcpcd</application> unpatched puts all configuration
72and temporary files in <filename>/etc/dhcpc</filename>. This becomes very
73annoying when <application>dhcpcd</application> tells you it's running and it's
74not. You look in <filename class="directory">/var/run</filename> for
75the <filename>PID</filename> file, but it's not
76there, the <filename>PID</filename> file that needs deleting is in
77<filename class="directory">/etc/dhcpc</filename>.
78This patch brings this program into <acronym>FHS</acronym> compliance, but more
79importantly, puts files where you expect them to be.</para>
80
81<para><parameter>--prefix=""</parameter>: There may be a good reason for
82abandoning the normal <acronym>BLFS</acronym> convention of using
83<parameter>--prefix=/usr</parameter> here. If you are installing
84<acronym>DHCP</acronym>, it is likely that it is
85required during the boot process and
86<filename class="directory">/usr</filename> may be network
87mounted, in which case <command>dhcpcd</command> wouldn't be available due to
88being on the network! Therefore, depending on your situation, you may want it
89to be installed in <filename class="directory">/sbin</filename> or
90<filename class="directory">/usr/sbin</filename>. This command installs to
91<filename class="directory">/sbin</filename>.</para>
92
93<para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
94configuration files in the <filename class="directory">/var/lib</filename>
95directory.</para>
96
97<para><parameter>--mandir=/usr/share/man</parameter>: This command installs
98the man pages to the <filename class="directory">/usr/share/man</filename>
99directory.</para>
100
101</sect2>
102
103<sect2>
104<title>Configuring <application>dhcpcd</application></title>
105
106<sect3><title>Config files</title>
107<para><filename>/var/lib/dhcpc/*</filename></para></sect3>
108
109<sect3><title>Configuration Information</title>
110
111<para>To configure <command>dhcpcd</command>, you need to first install
112the network service script,
113<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
114included in the <xref linkend="intro-important-bootscripts"/> package.</para>
115
116<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
117
118<para>Finally, create the
119<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
120configuration file using the following commands. Adjust appropriately
121for additional interfaces.</para>
122
123<screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
124cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"</command>
125ONBOOT="yes"
126SERVICE="dhcpcd"
127DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
128DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
129
130# Set PRINTIP="yes" to have the script print
131# the DHCP assigned IP address
132PRINTIP="no"
133
134# Set PRINTALL="yes" to print the DHCP assigned values for
135# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
136PRINTALL="no"
137<command>EOF</command></userinput></screen>
138
139<para>For more information on the appropriate
140<envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
141values, examine the man page for <command>dhcpcd</command>.</para>
142
143<note><para>The default behavior of <command>dhcpcd</command> is to overwrite
144(after making backup copies) <filename>/etc/resolv.conf</filename>,
145<filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename>
146with new files containing information from the <acronym>DHCP</acronym>
147server. If this is undesirable, review the <command>dhcpcd</command>
148man page for switches to add to the <envar>DHCP_START</envar>
149value.</para></note>
150
151</sect3>
152
153</sect2>
154
155<sect2>
156<title>Contents</title>
157
158<para>The <application>dhcpcd</application> package contains
159<command>dhcpcd</command>.</para>
160
161</sect2>
162
163<sect2><title>Description</title>
164
165<sect3><title>dhcpcd</title>
166<para><command>dhcpcd</command> is an implementation of the
167<acronym>DHCP</acronym> client specified in <acronym>RFC</acronym>2131 and
168<acronym>RFC</acronym>1541 (depending on which options are specified).</para>
169</sect3>
170
171</sect2>
172
173</sect1>
174
Note: See TracBrowser for help on using the repository browser.