[a8a8b9e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[5fdc965] | 8 | <sect1 id="ch-network-dhcpcd" role="wrap">
|
---|
[a8a8b9e] | 9 | <?dbhtml filename="dhcpcd.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>DHCPCD-&dhcpcd-version;</title>
|
---|
| 12 |
|
---|
[5fdc965] | 13 | <indexterm zone="ch-network-dhcpcd">
|
---|
[a8a8b9e] | 14 | <primary sortas="a-DHCPCD">DHCPCD</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The DHCPCD package provides a DHCP Client for network configuration.</para>
|
---|
| 21 |
|
---|
| 22 | </sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of DHCPCD</title>
|
---|
| 26 |
|
---|
[5fdc965] | 27 | <para os="a">If you wish to configure your network to connect to a DHCP
|
---|
| 28 | server, you will first need to install a DHCP client. CLFS uses the
|
---|
| 29 | DHCPCD package for this.</para>
|
---|
[a8a8b9e] | 30 |
|
---|
| 31 | <para os="b">Prepare DHCPCD for compilation:</para>
|
---|
| 32 |
|
---|
[b27081c4] | 33 | <screen os="c" role="nodump"><userinput>./configure \
|
---|
| 34 | --prefix=/usr \
|
---|
| 35 | --sbindir=/sbin \
|
---|
| 36 | --sysconfdir=/etc \
|
---|
| 37 | --dbdir=/var/lib/dhcpcd \
|
---|
| 38 | --libexecdir=/usr/lib/dhcpcd</userinput></screen>
|
---|
[a8a8b9e] | 39 |
|
---|
[37389ed] | 40 | <para os="d">Compile the package:</para>
|
---|
[a8a8b9e] | 41 |
|
---|
[819ba78] | 42 | <screen os="e" role="nodump"><userinput>make</userinput></screen>
|
---|
[a8a8b9e] | 43 |
|
---|
[37389ed] | 44 | <para os="f">This package does not come with a test suite.</para>
|
---|
| 45 |
|
---|
| 46 | <para os="g">Install the package:</para>
|
---|
| 47 |
|
---|
[819ba78] | 48 | <screen os="h" role="nodump"><userinput>make install</userinput></screen>
|
---|
[a8a8b9e] | 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
[31e77c0] | 52 | <sect2 id="conf-dhcpcd" role="configuration">
|
---|
[82fc053] | 53 | <title>Creating the DHCP Network Interface Configuration Files</title>
|
---|
[31e77c0] | 54 |
|
---|
[82fc053] | 55 | <para>First install the service from the CLFS Bootscripts package:</para>
|
---|
[31e77c0] | 56 |
|
---|
[819ba78] | 57 | <screen role="nodump"><userinput>tar -xvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.xz
|
---|
[82fc053] | 58 | cd bootscripts-cross-lfs-&bootscripts-clfs-version;
|
---|
| 59 | make install-service-dhcpcd</userinput></screen>
|
---|
[31e77c0] | 60 |
|
---|
[82fc053] | 61 | <para>Finally, create the
|
---|
| 62 | <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
|
---|
| 63 | configuration file using the following commands. Adjust appropriately for
|
---|
| 64 | additional interfaces:</para>
|
---|
[31e77c0] | 65 |
|
---|
[819ba78] | 66 | <screen role="nodump"><userinput>cd /etc/sysconfig/network-devices &&
|
---|
[82fc053] | 67 | mkdir -v ifconfig.eth0 &&
|
---|
| 68 | cat > ifconfig.eth0/dhcpcd << "EOF"
|
---|
| 69 | <literal>ONBOOT="yes"
|
---|
| 70 | SERVICE="dhcpcd"
|
---|
[31e77c0] | 71 |
|
---|
[82fc053] | 72 | # Start Command for DHCPCD
|
---|
| 73 | DHCP_START="-q"
|
---|
[31e77c0] | 74 |
|
---|
[82fc053] | 75 | # Stop Command for DHCPCD
|
---|
| 76 | DHCP_STOP="-k"</literal>
|
---|
| 77 | EOF</userinput></screen>
|
---|
[31e77c0] | 78 |
|
---|
[82fc053] | 79 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 80 | href="static.xml"
|
---|
| 81 | xpointer="xpointer(//*[@os='var-ob'])"/>
|
---|
[31e77c0] | 82 |
|
---|
[82fc053] | 83 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 84 | href="static.xml"
|
---|
| 85 | xpointer="xpointer(//*[@os='var-s'])"/>
|
---|
[31e77c0] | 86 |
|
---|
[82fc053] | 87 | <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
|
---|
| 88 | arguments that are passed onto <filename>dhcpcd</filename> when starting
|
---|
| 89 | and stoppping the service. More information about what can be passed can
|
---|
| 90 | be found in the <filename>dhcpcd(8)</filename> man page.</para>
|
---|
[31e77c0] | 91 |
|
---|
[82fc053] | 92 | <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
|
---|
[31e77c0] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
[a8a8b9e] | 96 | <sect2 id="contents-dhcpcd" role="content">
|
---|
| 97 | <title>Contents of dhcpcd</title>
|
---|
| 98 |
|
---|
| 99 | <segmentedlist>
|
---|
| 100 | <segtitle>Installed files</segtitle>
|
---|
| 101 |
|
---|
| 102 | <seglistitem>
|
---|
[593f554e] | 103 | <seg>dhcpcd</seg>
|
---|
[a8a8b9e] | 104 | </seglistitem>
|
---|
| 105 | </segmentedlist>
|
---|
| 106 |
|
---|
| 107 | <variablelist>
|
---|
| 108 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 109 | <?dbfo list-presentation="list"?>
|
---|
| 110 | <?dbhtml list-presentation="table"?>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="dhcpcd">
|
---|
| 113 | <term><command>dhcpcd</command></term>
|
---|
| 114 | <listitem>
|
---|
[8d157dfa] | 115 | <para>dhcpcd is an implementation of the DHCP client specified in
|
---|
| 116 | RFC 2131. It gets the host information from a DHCP server and
|
---|
| 117 | configures the network interface automatically.</para>
|
---|
[5fdc965] | 118 | <indexterm zone="ch-network-dhcpcd">
|
---|
[a8a8b9e] | 119 | <primary sortas="e-dhcpcd">dhcpcd</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | </variablelist>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | </sect1>
|
---|