Changeset 0125883


Ignore:
Timestamp:
Jan 23, 2014, 10:09:00 PM (10 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3a85bbd
Parents:
15f0ac6
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/network/common/dhcp.xml

    r15f0ac6 r0125883  
    99  <?dbhtml filename="network-dhcp.html"?>
    1010
    11   <title>DHCP Networking Configuration</title>
     11  <title>DHCP Network Configuration</title>
    1212
    1313  <sect2>
    14     <title>Creating the DHCP Network Interface Configuration Files</title>
     14    <title>Creating the DHCP Network Interface Configuration File</title>
    1515
    16     <para>The following is an example for the eth0 interface. Create the
    17     <filename>/etc/sysconfig/ifconfig.eth0</filename>
    18     configuration file using the following commands. Adjust appropriately for
    19     additional interfaces:</para>
     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>
    2019
    21 <screen><userinput>mkdir -pv /etc/sysconfig &amp;&amp;
    22 cd /etc/sysconfig &amp;&amp;
    23 cat &gt; ifconfig.eth0 &lt;&lt; "EOF"
    24 <literal>SERVICE="dhcpcd"
     20    <para>Create the <filename>/etc/dhcpcd.conf</filename> configuration file
     21    using the following commands. Adjust appropriately for additional options:</para>
    2522
    26 # Start Command for DHCPCD
    27 DHCP_START="-q"
     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.
    2827
    29 # Stop Command for DHCPCD
    30 DHCP_STOP="-k"</literal>
     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>
    3135EOF</userinput></screen>
    32 
    33     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    34     href="static.xml"
    35     xpointer="xpointer(//*[@os='var-ob'])"/>
    36 
    37     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    38     href="static.xml"
    39     xpointer="xpointer(//*[@os='var-s'])"/>
    40 
    41     <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
    42     arguments that are passed onto <filename>dhcpcd</filename> when starting
    43     and stoppping the service. More information about what can be passed can
    44     be found in the <filename>dhcpcd(8)</filename> man page.</para>
    4536
    4637    <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
     
    4839  </sect2>
    4940
     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
    5065</sect1>
Note: See TracChangeset for help on using the changeset viewer.