source: connect/dhcp/dhcpcd.xml@ 9f12e36

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 9f12e36 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
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 <!-- 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
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">
21 <!ENTITY dhcpcd-md5sum "e2e5cd9b8824c7b1d37a7c441b83515f">
22 <!ENTITY dhcpcd-size "128 KB">
23 <!ENTITY dhcpcd-buildsize "1.3 MB">
24 <!ENTITY dhcpcd-time "less than 0.1 SBU">
25]>
26
27<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
28 <?dbhtml filename="dhcpcd.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 </sect1info>
34
35 <title>Dhcpcd-&dhcpcd-version;</title>
36
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
45 <command>dhcpcd</command> client. This is useful for connecting your computer
46 to a network which uses DHCP to assign network addresses.</para>
47
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>
69
70<!--
71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
72 <itemizedlist spacing='compact'>
73 <listitem>
74 <para>Required Patch:
75 <ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
76 </listitem>
77 </itemizedlist>
78-->
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/dhcpcd"/></para>
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Dhcpcd</title>
87
88 <para>Install <application>dhcpcd</application> by running the following
89 commands:</para>
90
91<screen><userinput>./configure --prefix="" --sysconfdir=/var/lib \
92 --mandir=/usr/share/man &amp;&amp;
93make</userinput></screen>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install</userinput></screen>
98
99 </sect2>
100
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
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
114 <filename class="directory">/sbin</filename>.</para>
115
116 <para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
117 configuration and state files in the
118 <filename class="directory">/var/lib</filename> directory.</para>
119
120 </sect2>
121
122 <sect2 role="configuration">
123 <title>Configuring Dhcpcd</title>
124
125 <sect3 id="dhcpcd-config">
126 <title>Config Files</title>
127
128 <para><filename>/var/lib/dhcpc/*</filename></para>
129
130 <indexterm zone="dhcpcd dhcpcd-config">
131 <primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary>
132 </indexterm>
133
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>
142 included in the <xref linkend="bootscripts"/> package
143 (as user <systemitem class="username">root</systemitem>):</para>
144
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
151 <para id="dhcpcd-config2">Finally, as the <systemitem
152 class="username">root</systemitem> user create the
153 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
154 configuration file using the following commands. Adjust appropriately
155 for additional interfaces:</para>
156
157 <indexterm zone="dhcpcd dhcpcd-config2">
158 <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary>
159 </indexterm>
160
161<screen role='root'><userinput>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
162cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
163<literal>ONBOOT="yes"
164SERVICE="dhcpcd"
165DHCP_START="<replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
166DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"
167
168# Set PRINTIP="yes" to have the script print
169# the DHCP assigned IP address
170PRINTIP="no"
171
172# Set PRINTALL="yes" to print the DHCP assigned values for
173# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
174PRINTALL="no"</literal>
175EOF</userinput></screen>
176
177 <para>For more information on the appropriate <envar>DHCP_START</envar> and
178 <envar>DHCP_STOP</envar> values, examine the man page for
179 <command>dhcpcd</command>.</para>
180
181 <note>
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
188 <envar>DHCP_START</envar> value.</para>
189 </note>
190
191 <indexterm zone="dhcpcd dhcpcd-config3">
192 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
193 </indexterm>
194
195 <indexterm zone="dhcpcd dhcpcd-config3">
196 <primary sortas="e-etc-yp.conf">/etc/yp.conf</primary>
197 </indexterm>
198
199 <indexterm zone="dhcpcd dhcpcd-config3">
200 <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
201 </indexterm>
202
203 </sect3>
204
205 </sect2>
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Program</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directory</segtitle>
214
215 <seglistitem>
216 <seg>dhcpcd</seg>
217 <seg>None</seg>
218 <seg>/var/lib/dhcpc</seg>
219 </seglistitem>
220 </segmentedlist>
221
222 <variablelist>
223 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
224 <?dbfo list-presentation="list"?>
225 <?dbhtml list-presentation="table"?>
226
227 <varlistentry id="dhcpcd-prog">
228 <term><command>dhcpcd</command></term>
229 <listitem>
230 <para>is an implementation of the DHCP client
231 specified in RFC2131 and RFC1541
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>
238
239 </variablelist>
240
241 </sect2>
242
243</sect1>
Note: See TracBrowser for help on using the repository browser.