Subversion Repositories svn LFS-FR

Rev

Blame | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-network-dhcp">
  <?dbhtml filename="network-dhcp.html"?>

  <title>DHCP Networking Configuration</title>

  <sect2>
    <title>Creating the DHCP Network Interface Configuration Files</title>

    <para>First install the service from the CLFS Bootscripts package:</para>

<screen><userinput>tar -jxvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.bz2
cd -v bootscripts-cross-lfs-&bootscripts-clfs-version;
make DESTDIR=${CLFS} install-service-dhcpcd</userinput></screen>

    <para>Finally, create the
    <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
    configuration file using the following commands. Adjust appropriately for
    additional interfaces:</para>

<screen><userinput>cd ${CLFS}/etc/sysconfig/network-devices &amp;&amp;
mkdir -v ifconfig.eth0 &amp;&amp;
cat &gt; ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
<literal>ONBOOT="yes"
SERVICE="dhcpcd"

# Start Command for DHCPCD
DHCP_START="-q"

# Stop Command for DHCPCD
DHCP_STOP="-k"</literal>
EOF</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
   href="static.xml"
   xpointer="xpointer(//*[@os='var-ob'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
   href="static.xml"
   xpointer="xpointer(//*[@os='var-s'])"/>

    <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
    arguments that are passed onto <filename>dhcpcd</filename> when starting
    and stoppping the service. More information about what can be passed can
    be found in the <filename>dhcpcd(8)</filename> man page.</para>

    <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>

  </sect2>

</sect1>