source: BOOK/network/common/dhcpcd.xml @ 819ba78

clfs-3.0.0-sysvinitsysvinit
Last change on this file since 819ba78 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
RevLine 
[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
[819ba78]33<screen os="c" role="nodump"><userinput>./configure --prefix=/usr --sbindir=/sbin \
[37389ed]34    --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd</userinput></screen>
[a8a8b9e]35
[37389ed]36    <para os="d">Compile the package:</para>
[a8a8b9e]37
[819ba78]38<screen os="e" role="nodump"><userinput>make</userinput></screen>
[a8a8b9e]39
[37389ed]40    <para os="f">This package does not come with a test suite.</para>
41
42    <para os="g">Install the package:</para>
43
[819ba78]44<screen os="h" role="nodump"><userinput>make install</userinput></screen>
[a8a8b9e]45
46  </sect2>
47
[31e77c0]48  <sect2 id="conf-dhcpcd" role="configuration">
[82fc053]49    <title>Creating the DHCP Network Interface Configuration Files</title>
[31e77c0]50
[82fc053]51    <para>First install the service from the CLFS Bootscripts package:</para>
[31e77c0]52
[819ba78]53<screen role="nodump"><userinput>tar -xvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.xz
[82fc053]54cd bootscripts-cross-lfs-&bootscripts-clfs-version;
55make install-service-dhcpcd</userinput></screen>
[31e77c0]56
[82fc053]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>
[31e77c0]61
[819ba78]62<screen role="nodump"><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
[82fc053]63mkdir -v ifconfig.eth0 &amp;&amp;
64cat &gt; ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
65<literal>ONBOOT="yes"
66SERVICE="dhcpcd"
[31e77c0]67
[82fc053]68# Start Command for DHCPCD
69DHCP_START="-q"
[31e77c0]70
[82fc053]71# Stop Command for DHCPCD
72DHCP_STOP="-k"</literal>
73EOF</userinput></screen>
[31e77c0]74
[82fc053]75    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
76    href="static.xml"
77    xpointer="xpointer(//*[@os='var-ob'])"/>
[31e77c0]78
[82fc053]79    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
80    href="static.xml"
81    xpointer="xpointer(//*[@os='var-s'])"/>
[31e77c0]82
[82fc053]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>
[31e77c0]87
[82fc053]88    <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
[31e77c0]89
90  </sect2>
91
[a8a8b9e]92  <sect2 id="contents-dhcpcd" role="content">
93    <title>Contents of dhcpcd</title>
94
95    <segmentedlist>
96      <segtitle>Installed files</segtitle>
97
98      <seglistitem>
[593f554e]99        <seg>dhcpcd</seg>
[a8a8b9e]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>
[8d157dfa]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>
[5fdc965]114          <indexterm zone="ch-network-dhcpcd">
[a8a8b9e]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.