source: connect/dhcp/dhcpcd.xml@ ebabf24

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 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/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ebabf24 was 9f12e36, checked in by Randy McMurchy <randy@…>, 18 years ago

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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

  • Property mode set to 100644
File size: 8.5 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>
33 </sect1info>
[4839c17]34
[820d164a]35 <title>Dhcpcd-&dhcpcd-version;</title>
[4839c17]36
[820d164a]37 <indexterm zone="dhcpcd">
38 <primary sortas="a-Dhcpcd">Dhcpcd</primary>
39 </indexterm>
40
41 <sect2 role="package">
42 <title>Introduction to Dhcpcd</title>
43
44 <para>The <application>dhcpcd</application> package contains the
[893d9711]45 <command>dhcpcd</command> client. This is useful for connecting your computer
[820d164a]46 to a network which uses DHCP to assign network addresses.</para>
[4839c17]47
[820d164a]48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>Download (HTTP): <ulink url="&dhcpcd-download-http;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download (FTP): <ulink url="&dhcpcd-download-ftp;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download MD5 sum: &dhcpcd-md5sum;</para>
58 </listitem>
59 <listitem>
60 <para>Download size: &dhcpcd-size;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated disk space required: &dhcpcd-buildsize;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated build time: &dhcpcd-time;</para>
67 </listitem>
68 </itemizedlist>
[4839c17]69
[64809e2]70<!--
[820d164a]71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
72 <itemizedlist spacing='compact'>
73 <listitem>
[893d9711]74 <para>Required Patch:
[820d164a]75 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
76 </listitem>
[6473e74]77 </itemizedlist>
[64809e2]78-->
[4839c17]79
[7e1f3aa]80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/dhcpcd"/></para>
82
[820d164a]83 </sect2>
[4839c17]84
[820d164a]85 <sect2 role="installation">
86 <title>Installation of Dhcpcd</title>
87
[893d9711]88 <para>Install <application>dhcpcd</application> by running the following
[820d164a]89 commands:</para>
90
[51ff7252]91<screen><userinput>./configure --prefix="" --sysconfdir=/var/lib \
92 --mandir=/usr/share/man &amp;&amp;
[820d164a]93make</userinput></screen>
[4839c17]94
[820d164a]95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[4839c17]96
[820d164a]97<screen role="root"><userinput>make install</userinput></screen>
[4839c17]98
[820d164a]99 </sect2>
[4839c17]100
[820d164a]101 <sect2 role="commands">
102 <title>Command Explanations</title>
103
104 <para><parameter>--prefix=""</parameter>: There may be a good reason for
105 abandoning the normal BLFS convention of using
[893d9711]106 <parameter>--prefix=/usr</parameter> here. If you are installing
107 DHCP, it is likely that it is
108 required during the boot process and
109 <filename class="directory">/usr</filename> may be network mounted, in which
110 case <command>dhcpcd</command> wouldn't be available due to being on the
111 network! Therefore, depending on your situation, you may want it to be
112 installed in <filename class="directory">/sbin</filename> or
113 <filename class="directory">/usr/sbin</filename>. This command installs to
[820d164a]114 <filename class="directory">/sbin</filename>.</para>
[4839c17]115
[820d164a]116 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
[6473e74]117 configuration and state files in the
[64809e2]118 <filename class="directory">/var/lib</filename> directory.</para>
[4839c17]119
[820d164a]120 </sect2>
[4839c17]121
[820d164a]122 <sect2 role="configuration">
123 <title>Configuring Dhcpcd</title>
124
125 <sect3 id="dhcpcd-config">
126 <title>Config Files</title>
[4839c17]127
[820d164a]128 <para><filename>/var/lib/dhcpc/*</filename></para>
[4839c17]129
[820d164a]130 <indexterm zone="dhcpcd dhcpcd-config">
131 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
132 </indexterm>
[4839c17]133
[820d164a]134 </sect3>
135
136 <sect3 id="dhcpcd-init">
137 <title>Configuration Information</title>
138
139 <para>To configure <command>dhcpcd</command>, you need to first install
140 the network service script,
141 <filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
[5254d12]142 included in the <xref linkend="bootscripts"/> package
[820d164a]143 (as user <systemitem class="username">root</systemitem>):</para>
[4839c17]144
[820d164a]145 <indexterm zone="dhcpcd dhcpcd-init">
146 <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
147 </indexterm>
148
149<screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
150
[893d9711]151 <para id="dhcpcd-config2">Finally, as the <systemitem
[820d164a]152 class="username">root</systemitem> user create the
[4839c17]153 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
[893d9711]154 configuration file using the following commands. Adjust appropriately
[820d164a]155 for additional interfaces:</para>
[4839c17]156
[820d164a]157 <indexterm zone="dhcpcd dhcpcd-config2">
158 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
159 </indexterm>
160
[e3353b3]161<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
[820d164a]162cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
163<literal>ONBOOT="yes"
[afa198d]164SERVICE="dhcpcd"
[7e1f3aa]165DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
166DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"
[00f97e91]167
[893d9711]168# Set PRINTIP="yes" to have the script print
[7ee9849]169# the DHCP assigned IP address
[00f97e91]170PRINTIP="no"
171
[893d9711]172# Set PRINTALL="yes" to print the DHCP assigned values for
[7ee9849]173# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
[820d164a]174PRINTALL="no"</literal>
175EOF</userinput></screen>
176
[893d9711]177 <para>For more information on the appropriate <envar>DHCP_START</envar> and
178 <envar>DHCP_STOP</envar> values, examine the man page for
[820d164a]179 <command>dhcpcd</command>.</para>
[4839c17]180
[820d164a]181 <note>
[893d9711]182 <para id="dhcpcd-config3">The default behavior of
183 <command>dhcpcd</command> is to overwrite (after making backup copies)
184 <filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
185 <filename>/etc/ntp.conf</filename> with new files containing information from
186 the DHCP server. If this is undesirable, review the
187 <command>dhcpcd</command> man page for switches to add to the
[820d164a]188 <envar>DHCP_START</envar> value.</para>
189 </note>
[4839c17]190
[820d164a]191 <indexterm zone="dhcpcd dhcpcd-config3">
192 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
193 </indexterm>
[4839c17]194
[820d164a]195 <indexterm zone="dhcpcd dhcpcd-config3">
196 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
197 </indexterm>
[4839c17]198
[820d164a]199 <indexterm zone="dhcpcd dhcpcd-config3">
200 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
201 </indexterm>
[4839c17]202
[820d164a]203 </sect3>
[4839c17]204
[820d164a]205 </sect2>
[4839c17]206
[820d164a]207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Program</segtitle>
212 <segtitle>Installed Libraries</segtitle>
[b1d305ed]213 <segtitle>Installed Directory</segtitle>
[4839c17]214
[820d164a]215 <seglistitem>
216 <seg>dhcpcd</seg>
217 <seg>None</seg>
218 <seg>/var/lib/dhcpc</seg>
219 </seglistitem>
220 </segmentedlist>
[4839c17]221
[820d164a]222 <variablelist>
223 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
224 <?dbfo list-presentation="list"?>
225 <?dbhtml list-presentation="table"?>
[4839c17]226
[820d164a]227 <varlistentry id="dhcpcd-prog">
228 <term><command>dhcpcd</command></term>
229 <listitem>
[893d9711]230 <para>is an implementation of the DHCP client
231 specified in RFC2131 and RFC1541
[820d164a]232 (depending on which options are specified).</para>
233 <indexterm zone="dhcpcd dhcpcd-prog">
234 <primary sortas="b-dhcpcd">dhcpcd</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
[4839c17]238
[820d164a]239 </variablelist>
240
241 </sect2>
[f45b1953]242
243</sect1>
Note: See TracBrowser for help on using the repository browser.