source: BOOK/network/common/dhcp.xml@ d8bd081

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d8bd081 was c757871, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Update DHCP settings. Fix formatting in the xml.

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[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
19cd -v bootscripts-cross-lfs-&bootscripts-clfs-version;
20make 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
[c757871]27<screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
28mkdir -v ifconfig.eth0 &amp;&amp;
29cat &gt; ifconfig.eth0/dhcpcd &lt;&lt; "EOF"
30<literal>ONBOOT="yes"
[593f554e]31SERVICE="dhcpcd"
32
33# Start Command for DHCPCD
34DHCP_START="-q"
35
36# Stop Command for DHCPCD
[c757871]37DHCP_STOP="-k"</literal>
38EOF
[593f554e]39</userinput></screen>
40
[572d0a6]41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="static.xml"
43 xpointer="xpointer(//*[@os='var-ob'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="static.xml"
47 xpointer="xpointer(//*[@os='var-s'])"/>
48
49 <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables
50 arguments that are passed onto <filename>dhcpcd</filename> when starting
51 and stoppping the service. More information about what can be passed can
52 be found in the <filename>dhcpcd(8)</filename> man page.</para>
53
[593f554e]54 <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para>
55
56 </sect2>
57
58</sect1>
Note: See TracBrowser for help on using the repository browser.