source: BOOK/network/common/dhcpcd.xml

systemd
Last change on this file was 7cd7f99, checked in by Chris Staub <chris@…>, 8 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 4.1 KB
Line 
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
8<sect1 id="ch-network-dhcpcd" role="wrap">
9  <?dbhtml filename="dhcpcd.html"?>
10
11  <title>DHCPCD-&dhcpcd-version;</title>
12
13  <indexterm zone="ch-network-dhcpcd">
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
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>
30
31    <para os="b">Prepare DHCPCD for compilation:</para>
32
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>
39
40    <para os="d">Compile the package:</para>
41
42<screen os="e" role="nodump"><userinput>make</userinput></screen>
43
44    <para os="f">This package does not come with a test suite.</para>
45
46    <para os="g">Install the package:</para>
47
48<screen os="h" role="nodump"><userinput>make install</userinput></screen>
49
50  </sect2>
51
52  <sect2 id="conf-dhcpcd" role="configuration">
53    <title>Creating the DHCP Network Interface Configuration File</title>
54
55    <para>The following is an example for the eth0 interface. Refer to the
56    dhcpcd.conf man page for more information. This step may be skipped if
57    default behavior of dhcpcd is required.</para>
58
59    <para>Create the <filename>/etc/dhcpcd.conf</filename> configuration file
60    using the following commands. Adjust appropriately for additional options:</para>
61
62<screen role="nodump"><userinput>cd /etc &amp;&amp;
63cat &gt; dhcpcd.conf &lt;&lt; "EOF"
64<literal># dhcpcd configuration eth0 interface
65# See dhcpcd.conf(5) for details.
66
67interface eth0
68# dhcpcd-run-hooks uses these options.
69option subnet_mask, routers, domain_name_servers
70
71# The default timeout for waiting for a DHCP response is 30 seconds
72# which may be too long or too short and can be changed here.
73timeout 16</literal>
74EOF</userinput></screen>
75
76    <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
77
78  </sect2>
79
80  <sect2>
81    <title>Configuring the Network Interface at boot</title>
82
83    <para>Enabling of the Network Interface configuration is
84    done per interface. To enable Network Interface
85    configuration at boot, run:</para>
86
87<screen role="nodump"><userinput>systemctl enable dhcpcd@eth0</userinput></screen>
88
89    <para>To disable previously enabled Network Interface
90    configuration at boot, run:</para>
91
92<screen role="nodump"><userinput>systemctl disable dhcpcd@eth0</userinput></screen>
93
94    <para>To manually start the Network Interface configuration,
95    run:</para>
96
97<screen role="nodump"><userinput>systemctl start dhcpcd@eth0</userinput></screen>
98
99    <para>Replace eth0 with the correct Network Interface
100    name as described on the beginning of this page.</para>
101
102  </sect2>
103
104  <sect2 id="contents-dhcpcd" role="content">
105    <title>Contents of dhcpcd</title>
106
107    <segmentedlist>
108      <segtitle>Installed files</segtitle>
109
110      <seglistitem>
111        <seg>dhcpcd</seg>
112      </seglistitem>
113    </segmentedlist>
114
115    <variablelist>
116      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117      <?dbfo list-presentation="list"?>
118      <?dbhtml list-presentation="table"?>
119
120      <varlistentry id="dhcpcd">
121        <term><command>dhcpcd</command></term>
122        <listitem>
123          <para>dhcpcd is an implementation of the DHCP client specified in
124          RFC 2131. It gets the host information from a DHCP server and
125          configures the network interface automatically.</para>
126          <indexterm zone="ch-network-dhcpcd">
127            <primary sortas="e-dhcpcd">dhcpcd</primary>
128          </indexterm>
129        </listitem>
130      </varlistentry>
131
132    </variablelist>
133
134  </sect2>
135
136</sect1>
Note: See TracBrowser for help on using the repository browser.