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