source: connect/dhcp/dhcpcd.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

  • Property mode set to 100644
File size: 8.6 KB
RevLine 
[246c904]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[246c904]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[14d6b3e0]6
[0aeb696]7 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
[64809e2]19 <!ENTITY dhcpcd-download-http "http://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
20 <!ENTITY dhcpcd-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/dhcpcd-&dhcpcd-version;.tar.bz2">
[ed4e5b4]21 <!ENTITY dhcpcd-md5sum "e2e5cd9b8824c7b1d37a7c441b83515f">
22 <!ENTITY dhcpcd-size "128 KB">
[64809e2]23 <!ENTITY dhcpcd-buildsize "1.3 MB">
[ed4e5b4]24 <!ENTITY dhcpcd-time "less than 0.1 SBU">
[246c904]25]>
26
[f45b1953]27<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
[820d164a]28 <?dbhtml filename="dhcpcd.html"?>
[4839c17]29
[820d164a]30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
[6d4fc00]33 <keywordset>
34 <keyword role="package">dhcpcd-&dhcpcd-version;.tar</keyword>
[fa64a0e3]35 <keyword role="ftpdir">dhcpcd</keyword>
[6d4fc00]36 </keywordset>
[820d164a]37 </sect1info>
[4839c17]38
[820d164a]39 <title>Dhcpcd-&dhcpcd-version;</title>
[4839c17]40
[820d164a]41 <indexterm zone="dhcpcd">
42 <primary sortas="a-Dhcpcd">Dhcpcd</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to Dhcpcd</title>
47
48 <para>The <application>dhcpcd</application> package contains the
[893d9711]49 <command>dhcpcd</command> client. This is useful for connecting your computer
[820d164a]50 to a network which uses DHCP to assign network addresses.</para>
[4839c17]51
[820d164a]52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &dhcpcd-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &dhcpcd-time;</para>
71 </listitem>
72 </itemizedlist>
[4839c17]73
[64809e2]74<!--
[820d164a]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing='compact'>
77 <listitem>
[893d9711]78 <para>Required Patch:
[820d164a]79 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
80 </listitem>
[6473e74]81 </itemizedlist>
[64809e2]82-->
[4839c17]83
[7e1f3aa]84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/dhcpcd"/></para>
86
[820d164a]87 </sect2>
[4839c17]88
[820d164a]89 <sect2 role="installation">
90 <title>Installation of Dhcpcd</title>
91
[893d9711]92 <para>Install <application>dhcpcd</application> by running the following
[820d164a]93 commands:</para>
94
[51ff7252]95<screen><userinput>./configure --prefix="" --sysconfdir=/var/lib \
96 --mandir=/usr/share/man &amp;&amp;
[820d164a]97make</userinput></screen>
[4839c17]98
[820d164a]99 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[4839c17]100
[820d164a]101<screen role="root"><userinput>make install</userinput></screen>
[4839c17]102
[820d164a]103 </sect2>
[4839c17]104
[820d164a]105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <para><parameter>--prefix=""</parameter>: There may be a good reason for
109 abandoning the normal BLFS convention of using
[893d9711]110 <parameter>--prefix=/usr</parameter> here. If you are installing
111 DHCP, it is likely that it is
112 required during the boot process and
113 <filename class="directory">/usr</filename> may be network mounted, in which
114 case <command>dhcpcd</command> wouldn't be available due to being on the
115 network! Therefore, depending on your situation, you may want it to be
116 installed in <filename class="directory">/sbin</filename> or
117 <filename class="directory">/usr/sbin</filename>. This command installs to
[820d164a]118 <filename class="directory">/sbin</filename>.</para>
[4839c17]119
[820d164a]120 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
[6473e74]121 configuration and state files in the
[64809e2]122 <filename class="directory">/var/lib</filename> directory.</para>
[4839c17]123
[820d164a]124 </sect2>
[4839c17]125
[820d164a]126 <sect2 role="configuration">
127 <title>Configuring Dhcpcd</title>
128
129 <sect3 id="dhcpcd-config">
130 <title>Config Files</title>
[4839c17]131
[820d164a]132 <para><filename>/var/lib/dhcpc/*</filename></para>
[4839c17]133
[820d164a]134 <indexterm zone="dhcpcd dhcpcd-config">
135 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
136 </indexterm>
[4839c17]137
[820d164a]138 </sect3>
139
140 <sect3 id="dhcpcd-init">
141 <title>Configuration Information</title>
142
143 <para>To configure <command>dhcpcd</command>, you need to first install
144 the network service script,
145 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
[5254d12]146 included in the <xref linkend="bootscripts"/> package
[820d164a]147 (as user <systemitem class="username">root</systemitem>):</para>
[4839c17]148
[820d164a]149 <indexterm zone="dhcpcd dhcpcd-init">
150 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
151 </indexterm>
152
153<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
154
[893d9711]155 <para id="dhcpcd-config2">Finally, as the <systemitem
[820d164a]156 class="username">root</systemitem> user create the
[4839c17]157 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
[893d9711]158 configuration file using the following commands. Adjust appropriately
[820d164a]159 for additional interfaces:</para>
[4839c17]160
[820d164a]161 <indexterm zone="dhcpcd dhcpcd-config2">
162 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
163 </indexterm>
164
[e3353b3]165<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
[820d164a]166cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
167<literal>ONBOOT="yes"
[afa198d]168SERVICE="dhcpcd"
[7e1f3aa]169DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
170DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"
[00f97e91]171
[893d9711]172# Set PRINTIP="yes" to have the script print
[7ee9849]173# the DHCP assigned IP address
[00f97e91]174PRINTIP="no"
175
[893d9711]176# Set PRINTALL="yes" to print the DHCP assigned values for
[7ee9849]177# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
[820d164a]178PRINTALL="no"</literal>
179EOF</userinput></screen>
180
[893d9711]181 <para>For more information on the appropriate <envar>DHCP_START</envar> and
182 <envar>DHCP_STOP</envar> values, examine the man page for
[820d164a]183 <command>dhcpcd</command>.</para>
[4839c17]184
[820d164a]185 <note>
[893d9711]186 <para id="dhcpcd-config3">The default behavior of
187 <command>dhcpcd</command> is to overwrite (after making backup copies)
188 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
189 <filename>/etc/ntp.conf</filename> with new files containing information from
190 the DHCP server. If this is undesirable, review the
191 <command>dhcpcd</command> man page for switches to add to the
[820d164a]192 <envar>DHCP_START</envar> value.</para>
193 </note>
[4839c17]194
[820d164a]195 <indexterm zone="dhcpcd dhcpcd-config3">
196 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
197 </indexterm>
[4839c17]198
[820d164a]199 <indexterm zone="dhcpcd dhcpcd-config3">
200 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
201 </indexterm>
[4839c17]202
[820d164a]203 <indexterm zone="dhcpcd dhcpcd-config3">
204 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
205 </indexterm>
[4839c17]206
[820d164a]207 </sect3>
[4839c17]208
[820d164a]209 </sect2>
[4839c17]210
[820d164a]211 <sect2 role="content">
212 <title>Contents</title>
213
214 <segmentedlist>
215 <segtitle>Installed Program</segtitle>
216 <segtitle>Installed Libraries</segtitle>
[b1d305ed]217 <segtitle>Installed Directory</segtitle>
[4839c17]218
[820d164a]219 <seglistitem>
220 <seg>dhcpcd</seg>
221 <seg>None</seg>
222 <seg>/var/lib/dhcpc</seg>
223 </seglistitem>
224 </segmentedlist>
[4839c17]225
[820d164a]226 <variablelist>
227 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
228 <?dbfo list-presentation="list"?>
229 <?dbhtml list-presentation="table"?>
[4839c17]230
[820d164a]231 <varlistentry id="dhcpcd-prog">
232 <term><command>dhcpcd</command></term>
233 <listitem>
[893d9711]234 <para>is an implementation of the DHCP client
235 specified in RFC2131 and RFC1541
[820d164a]236 (depending on which options are specified).</para>
237 <indexterm zone="dhcpcd dhcpcd-prog">
238 <primary sortas="b-dhcpcd">dhcpcd</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
[4839c17]242
[820d164a]243 </variablelist>
244
245 </sect2>
[f45b1953]246
247</sect1>
Note: See TracBrowser for help on using the repository browser.