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