Changeset b5ea3492 for connect/dhcp


Ignore:
Timestamp:
03/21/2004 07:27:22 PM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, 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, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
cc265e51
Parents:
f53f1b3c
Message:

The march to lfs-bootscripts begins

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

Location:
connect/dhcp
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • connect/dhcp/dhcp-client.xml

    rf53f1b3c rb5ea3492  
    1616(<command>dhclient</command>).</para>
    1717
    18 <para>To configure <command>dhclient</command>, you need to create two files,
    19 <filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and
    20 <filename>/etc/dhclient.conf</filename>.</para>
     18<para>To configure <command>dhclient</command>, we need to first install
     19the network service script,
     20<filename>/etc/sysconfig/network-devices/services/dhclient</filename>
     21included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    2122
    22 <para>First, create the <filename>ifconfig.eth0</filename>
    23 file with the following commands (note that this will overwrite any
    24 existing file):</para>
     23<screen><userinput><command>make install-service-dhclient</command></userinput></screen>
    2524
    26 <screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
    27 cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
     25<para>Next, create the <filename>ifconfig.eth0</filename>
     26file with the following commands.  Adjust as necessary for additional
     27interfaces.</para>
     28
     29<para><emphasis>Note</emphasis>: this will overwrite any existing file.</para>
     30
     31<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    2832ONBOOT=yes
    29 DHCP_PROG=/sbin/dhclient
    30 DHCP_START=&lt;appropriate start parameters&gt;
    31 DHCP_STOP=-r
     33DHCP_START="&lt;place appropriate start parameters here&gt;"
     34DHCP_STOP="-r &lt;add additional stop parameters here&gt;"
     35SERVICE=dhclient
    3236<command>EOF</command></userinput></screen>
    3337
     
    3640values, examine the man page for <command>dhclient</command>.</para>
    3741
    38 <para>Next, you should then create
    39 the <filename>/etc/dhclient.conf</filename> using the following command:</para>
     42<para>Finally, you should then create
     43the <filename>/etc/dhclient.conf</filename> using the following
     44commands.  Append to the file if you have more than one interface:</para>
    4045
    4146<screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
  • connect/dhcp/dhcp.xml

    rf53f1b3c rb5ea3492  
    1212<para>We currently provide installation instructions for two
    1313<acronym>DHCP</acronym> clients, <command>dhclient</command> (from the
    14 <application>dhcp</application> package) and <command>dhcpcd</command>.  We
    15 begin with a page which shows how to alter the <acronym>LFS</acronym>
    16 boot scripts for generic <acronym>DHCP</acronym> support. We then present the
    17 two sets of installation instructions which also discuss
    18 how to create an appropriate configuration file to work with the
    19 <acronym>DHCP</acronym> client of your choice.</para>
     14<application>dhcp</application> package) and <command>dhcpcd</command>.
     15We present both sets of installation instructions which also discuss how
     16to create an appropriate service script to work with the
     17<command>network</command> bootscript and the <acronym>DHCP</acronym>
     18client of your choice.</para>
    2019
    21 &connect-dhcp-bootscripts;
    2220&connect-dhcp-client;
    2321&dhcpcd;
  • connect/dhcp/dhcpcd/dhcpcd-config.xml

    rf53f1b3c rb5ea3492  
    77<sect3><title>Configuration Information</title>
    88
    9 <para>To configure <command>dhcpcd</command>, create the <filename>
    10 ifconfig.eth0</filename> file with the following commands (note that this
    11 will overwrite any existing file):</para>
     9<para>To configure <command>dhcpcd</command>, we need to first install
     10the network service script,
     11<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
     12included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    1213
    13 <screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
    14 cat &gt; ifconfig.eth0 &lt;&lt; "EOF"</command>
     14<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
     15
     16<para>Now create the <filename>ifconfig.eth0</filename> configuration
     17file using the following commands.  Adjust appropriatly for additional
     18interfaces.</para>
     19
     20<para><emphasis>Note:</emphasis> This will overwrite any existing file.</para>
     21
     22<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    1523ONBOOT=yes
    16 DHCP_PROG=/sbin/dhcpcd
    17 DHCP_START=&lt;appropriate start parameters&gt;
    18 DHCP_STOP=-k
     24DHCP_START="&lt;insert appropriate start options here&gt;"
     25DHCP_STOP="-k &lt;insert other stop options here&gt;"
     26SERVICE=dhcpcd
    1927<command>EOF</command></userinput></screen>
    2028
Note: See TracChangeset for help on using the changeset viewer.