source: BOOK/network/common/dhcpcd.xml@ c493aa56

sysvinit
Last change on this file since c493aa56 was 819ba78, checked in by Chris Staub <chris@…>, 10 years ago

Use nodump to prevent jhalfs from processing network config commands

  • Property mode set to 100644
File size: 3.9 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 --prefix=/usr --sbindir=/sbin \
34 --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd</userinput></screen>
35
36 <para os="d">Compile the package:</para>
37
38<screen os="e" role="nodump"><userinput>make</userinput></screen>
39
40 <para os="f">This package does not come with a test suite.</para>
41
42 <para os="g">Install the package:</para>
43
44<screen os="h" role="nodump"><userinput>make install</userinput></screen>
45
46 </sect2>
47
48 <sect2 id="conf-dhcpcd" role="configuration">
49 <title>Creating the DHCP Network Interface Configuration Files</title>
50
51 <para>First install the service from the CLFS Bootscripts package:</para>
52
53<screen role="nodump"><userinput>tar -xvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.xz
54cd bootscripts-cross-lfs-&bootscripts-clfs-version;
55make install-service-dhcpcd</userinput></screen>
56
57 <para>Finally, create the
58 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
59 configuration file using the following commands. Adjust appropriately for
60 additional interfaces:</para>
61
62<screen role="nodump"><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
63mkdir -v ifconfig.eth0 &amp;&amp;
64cat &gt; ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
65<literal>ONBOOT="yes"
66SERVICE="dhcpcd"
67
68# Start Command for DHCPCD
69DHCP_START="-q"
70
71# Stop Command for DHCPCD
72DHCP_STOP="-k"</literal>
73EOF</userinput></screen>
74
75 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
76 href="static.xml"
77 xpointer="xpointer(//*[@os='var-ob'])"/>
78
79 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
80 href="static.xml"
81 xpointer="xpointer(//*[@os='var-s'])"/>
82
83 <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
84 arguments that are passed onto <filename>dhcpcd</filename> when starting
85 and stoppping the service. More information about what can be passed can
86 be found in the <filename>dhcpcd(8)</filename> man page.</para>
87
88 <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
89
90 </sect2>
91
92 <sect2 id="contents-dhcpcd" role="content">
93 <title>Contents of dhcpcd</title>
94
95 <segmentedlist>
96 <segtitle>Installed files</segtitle>
97
98 <seglistitem>
99 <seg>dhcpcd</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="dhcpcd">
109 <term><command>dhcpcd</command></term>
110 <listitem>
111 <para>dhcpcd is an implementation of the DHCP client specified in
112 RFC 2131. It gets the host information from a DHCP server and
113 configures the network interface automatically.</para>
114 <indexterm zone="ch-network-dhcpcd">
115 <primary sortas="e-dhcpcd">dhcpcd</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
120 </variablelist>
121
122 </sect2>
123
124</sect1>
Note: See TracBrowser for help on using the repository browser.