source: BOOK/network/common/dhcp.xml@ 14ac7cb

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 14ac7cb was 0125883, checked in by William Harrington <kb0iic@…>, 11 years ago

Rewrite dhcp.xml for systemd control utilizing the dhcpcd@service unit.

  • Property mode set to 100644
File size: 2.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-dhcp">
9 <?dbhtml filename="network-dhcp.html"?>
10
11 <title>DHCP Network Configuration</title>
12
13 <sect2>
14 <title>Creating the DHCP Network Interface Configuration File</title>
15
16 <para>The following is an example for the eth0 interface. Refer to the
17 dhcpcd.conf man page for more information. This step may be skipped if
18 default behavior of dhcpcd is required.</para>
19
20 <para>Create the <filename>/etc/dhcpcd.conf</filename> configuration file
21 using the following commands. Adjust appropriately for additional options:</para>
22
23<screen><userinput>cd /etc &amp;&amp;
24cat &gt; dhcpcd.conf &lt;&lt; "EOF"
25<literal># dhcpcd configuration eth0 interface
26# See dhcpcd.conf(5) for details.
27
28interface eth0
29# dhcpcd-run-hooks uses these options.
30option subnet_mask, routers, domain_name_servers
31
32# The default timeout for waiting for a DHCP response is 30 seconds
33# which may be too long or too short and can be changed here.
34timeout 16</literal>
35EOF</userinput></screen>
36
37 <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
38
39 </sect2>
40
41 <sect2>
42 <title>Configuring the Network Interface at boot</title>
43
44 <para>Enabling of the Network Interface configuration is
45 done per interface. To enable Network Interface
46 configuration at boot, run:</para>
47
48<screen role="nodump"><userinput>systemctl enable dhcpcd@eth0</userinput></screen>
49
50 <para>To disable previously enabled Network Interface
51 configuration at boot, run:</para>
52
53<screen role="nodump"><userinput>systemctl disable dhcpcd@eth0</userinput></screen>
54
55 <para>To manually start the Network Interface configuration,
56 run:</para>
57
58<screen role="nodump"><userinput>systemctl start dhcpcd@eth0</userinput></screen>
59
60 <para>Replace eth0 with the correct Network Interface
61 name as described on the beginning of this page.</para>
62
63 </sect2>
64
65</sect1>
Note: See TracBrowser for help on using the repository browser.