[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 &&
|
---|
[820d164a] | 97 | make</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 &&
|
---|
[820d164a] | 166 | cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"
|
---|
| 167 | <literal>ONBOOT="yes"
|
---|
[afa198d] | 168 | SERVICE="dhcpcd"
|
---|
[7e1f3aa] | 169 | DHCP_START="<replaceable><insert appropriate start options here></replaceable>"
|
---|
| 170 | DHCP_STOP="-k <replaceable><insert additional stop options here></replaceable>"
|
---|
[00f97e91] | 171 |
|
---|
[893d9711] | 172 | # Set PRINTIP="yes" to have the script print
|
---|
[7ee9849] | 173 | # the DHCP assigned IP address
|
---|
[00f97e91] | 174 | PRINTIP="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] | 178 | PRINTALL="no"</literal>
|
---|
| 179 | EOF</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>
|
---|