[593f554e] | 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 Networking Configuration</title>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>Creating the DHCP Network Interface Configuration Files</title>
|
---|
| 15 |
|
---|
| 16 | <para>First install the service from the CLFS Bootscripts package:</para>
|
---|
| 17 |
|
---|
| 18 | <screen><userinput>tar -jxvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.bz2
|
---|
| 19 | cd -v bootscripts-cross-lfs-&bootscripts-clfs-version;
|
---|
| 20 | make install-service-dhcpcd</userinput></screen>
|
---|
| 21 |
|
---|
| 22 | <para>Finally, create the
|
---|
| 23 | <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
|
---|
| 24 | configuration file using the following commands. Adjust appropriately for
|
---|
| 25 | additional interfaces:</para>
|
---|
| 26 |
|
---|
| 27 | <screen><userinput><literal>install -v -d /etc/sysconfig/network-devices/ifconfig.eth0
|
---|
| 28 | cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"
|
---|
| 29 | ONBOOT="yes"
|
---|
| 30 | SERVICE="dhcpcd"
|
---|
| 31 |
|
---|
| 32 | # Start Command for DHCPCD
|
---|
| 33 | #
|
---|
| 34 | DHCP_START="-q"
|
---|
| 35 |
|
---|
| 36 | # Stop Command for DHCPCD
|
---|
| 37 | #
|
---|
| 38 | DHCP_STOP="-k"
|
---|
| 39 | EOF</literal>
|
---|
| 40 | </userinput></screen>
|
---|
| 41 |
|
---|
[572d0a6] | 42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 43 | href="static.xml"
|
---|
| 44 | xpointer="xpointer(//*[@os='var-ob'])"/>
|
---|
| 45 |
|
---|
| 46 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 47 | href="static.xml"
|
---|
| 48 | xpointer="xpointer(//*[@os='var-s'])"/>
|
---|
| 49 |
|
---|
| 50 | <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
|
---|
| 51 | arguments that are passed onto <filename>dhcpcd</filename> when starting
|
---|
| 52 | and stoppping the service. More information about what can be passed can
|
---|
| 53 | be found in the <filename>dhcpcd(8)</filename> man page.</para>
|
---|
| 54 |
|
---|
[593f554e] | 55 | <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 | </sect1>
|
---|