Changeset 050d775d


Ignore:
Timestamp:
10/05/2002 12:05:31 AM (22 years ago)
Author:
Mark Hymers <markh@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
Children:
ee46bc8b
Parents:
d197ba76
Message:

clarify dhcp client instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@304 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • connect/connect.ent

    rd197ba76 r050d775d  
    1313<!ENTITY % dhcpcd SYSTEM "dhcp/dhcpcd/dhcpcd.ent">
    1414%dhcpcd;
    15 <!ENTITY connect-dhcp-config SYSTEM "dhcp/config.xml">
     15<!ENTITY connect-dhcp-bootscripts SYSTEM "dhcp/bootscripts.xml">
    1616
    1717<!-- Other -->
  • connect/dhcp/dhcp-client.xml

    rd197ba76 r050d775d  
    33<title>dhcp-&dhcp-version;</title>
    44
    5 <para>The dhcp package comes with both a client and a server program for
    6 using DHCP.  If you want to install it, the instructions can be found
    7 at <xref linkend="dhcp"/>.  Note that if you only want to
    8 use the client, you do <emphasis>not</emphasis> need to run the server and
    9 so do not need the startup script and links provided for the server daemon.
    10 Note that to use the client, you still need to alter your
    11 <filename>ethnet</filename> script as described in the next section.
    12 You only need to run the DHCP server however, if you're providing this
     5<para>The dhcp package comes with both a client (called dhcpcd) and a
     6server program for using DHCP.  If you want to install this package,
     7the instructions can be found at <xref linkend="dhcp"/>. 
     8Note that if you only want to use the client, you
     9do <emphasis>not</emphasis> need to run the server and so do not need
     10the startup script and links provided for the server daemon.
     11You only need to run the DHCP server if you're providing this
    1312service to a network, and it's likely that you'll know if that's the
    14 case; if it isn't, don't run the server!</para>
     13case; if it isn't, don't run the server!  Once you have installed the
     14package, return here for information on how to configure the client
     15(dhcpcd).</para>
    1516
    16 <para>To configure the client, you need to modify the
    17 <filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> file
    18 (or the appropriate one for the interface you are running DHCP on)
    19 you created earlier by adding the appropriate <userinput>DHCP_PROG
    20 </userinput>, <userinput>DHCP_START</userinput> and
    21 <userinput>DHCP_STOP</userinput> values.</para>
     17<para>To configure dhclient, you need to create two files,
     18<filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and
     19<filename>/etc/dhclient.conf</filename>.</para>
    2220
    23 <para>Then create the <filename>/etc/dhclient.conf</filename> using the
    24 following command:</para>
     21<para>Firstly, create the <filename>ifconfig.eth0</filename>
     22file with the following commands (note that this will overwrite any
     23existing file):</para>
     24
     25<para><screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
     26cat &gt; ifconfig.eth0 &lt;&lt; "EOF"</userinput>
     27ONBOOT=yes
     28DHCP_PROG=/sbin/dhclient
     29DHCP_START=&lt;appropriate start parameters&gt;
     30DHCP_STOP=-r
     31<userinput>EOF</userinput></screen></para>
     32
     33<para>For more information on the apppropriate
     34<userinput>DHCP_START</userinput> and <userinput>DHCP_STOP</userinput>
     35values, examine the man-page for dhclient.</para>
     36
     37<para>Secondly you should then create
     38the <filename>/etc/dhclient.conf</filename> using the following command:</para>
    2539
    2640<para><screen><userinput>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</userinput>
  • connect/dhcp/dhcp.xml

    rd197ba76 r050d775d  
    1111
    1212<para>We currently provide installation instructions for two DHCP
    13 clients, those from the dhcp and dhcpcd packages.  After we discuss
    14 installing the packages, we will also discuss how to
    15 configure your bootscripts to allow you to use dhcp as a client.</para>
     13clients, dhclient (from the dhcp package) and dhcpcd.  We begin with a page
     14which shows how to alter the LFS bootscripts for generic DHCP support.
     15We then present the two sets of installation instructions which also discuss
     16how to create an appropriate configuration file to work with the
     17DHCP client of your choice.</para>
    1618
     19&connect-dhcp-bootscripts;
    1720&connect-dhcp-client;
    1821&dhcpcd;
    19 &connect-dhcp-config;
    2022
    2123</chapter>
  • connect/dhcp/dhcpcd/dhcpcd-config.xml

    rd197ba76 r050d775d  
    77<sect3><title>Configuration Information</title>
    88
    9 <para>To configure the client, you need to modify the
    10 <filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> file
    11 (or the appropriate one for the interface you are running DHCP on)
    12 you created earlier by adding the appropriate <userinput>DHCP_PROG
    13 </userinput>, <userinput>DHCP_START</userinput> and
    14 <userinput>DHCP_STOP</userinput> values.</para>
     9<para>To configure dhcpcd, create the <filename>ifconfig.eth0</filename>
     10file with the following commands (note that this will overwrite any
     11existing file):</para>
     12
     13<para><screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
     14cat &gt; ifconfig.eth0 &lt;&lt; "EOF"</userinput>
     15ONBOOT=yes
     16DHCP_PROG=/sbin/dhcpcd
     17DHCP_START=&lt;appropriate start parameters&gt;
     18DHCP_STOP=-k
     19<userinput>EOF</userinput></screen></para>
     20
     21<para>For more information on the apppropriate
     22<userinput>DHCP_START</userinput> and <userinput>DHCP_STOP</userinput>
     23values, examine the man-page for dhcpcd.</para>
    1524
    1625</sect3>
  • introduction/welcome/changelog.xml

    rd197ba76 r050d775d  
    1010
    1111<itemizedlist>
     12
     13<listitem><para>October 4th, 2002 [markh]: Connect: Slight re-write of DHCP
     14instructions to clarify them.</para></listitem>
    1215
    1316<listitem><para>October 4th, 2002 [markh]: Xsoft: Add dependency of "which"
Note: See TracChangeset for help on using the changeset viewer.