Changeset 59ed37f9


Ignore:
Timestamp:
04/30/2005 05:58:58 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
0ee4762
Parents:
db78bbc
Message:

Tagged dhcp-client.xml

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

File:
1 edited

Legend:

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

    rdb78bbc r59ed37f9  
    77
    88<sect1 id="dhcp-client" xreflabel="DHCP-&dhcp-version; Client">
    9 <sect1info>
    10 <othername>$LastChangedBy$</othername>
    11 <date>$Date$</date>
    12 </sect1info>
    13 <?dbhtml filename="dhcpclient.html"?>
    14 <title>DHCP-&dhcp-version; Client</title>
    15 <indexterm zone="dhcp-client">
    16 <primary sortas="b-dhclient">dhclient</primary></indexterm>
    17 
    18 <para>The <application><acronym>DHCP</acronym></application> package comes with
    19 both a client (<command>dhclient</command>) and a server program for
    20 using <acronym>DHCP</acronym>.  If you want to install this package,
    21 the instructions can be found at <xref linkend="dhcp"/>. 
    22 Note that if you only want to use the client, you
    23 do <emphasis>not</emphasis> need to run the server and so do not need
    24 the startup script and links provided for the server daemon.
    25 You only need to run the <acronym>DHCP</acronym> server if you're providing
    26 this service to a network, and it's likely that you'll know if that's the
    27 case; if it isn't, don't run the server!  Once you have installed the
    28 package, return here for information on how to configure the client
    29 (<command>dhclient</command>).</para>
    30 
    31 <para id="dhclient-service">To configure <command>dhclient</command>, you need
    32 to first install the network service script,
    33 <filename>/etc/sysconfig/network-devices/services/dhclient</filename>
    34 included in the <xref linkend="intro-important-bootscripts"/> package
    35 (as root).</para>
    36 <indexterm zone="dhcp-client dhclient-service">
    37 <primary sortas="f-dhclient">dhclient (service script)</primary></indexterm>
    38 
    39 <screen><userinput role='root'><command>make install-service-dhclient</command></userinput></screen>
    40 
    41 <para id="dhclient-config1">Next, create the
    42 <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhclient</filename>
    43 configuration file with the following commands as the root user.  Adjust as
    44 necessary for additional interfaces.</para>
    45 <indexterm zone="dhcp-client dhclient-config1">
    46 <primary
    47 sortas="e-etc-sysconfig-...-dhclient">/etc/sysconfig/.../dhclient</primary>
    48 </indexterm>
    49 
    50 <screen><userinput role='root'><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
    51 cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhclient &lt;&lt; "EOF"</command>
    52 ONBOOT="yes"
     9  <?dbhtml filename="dhcpclient.html"?>
     10 
     11  <sect1info>
     12    <othername>$LastChangedBy$</othername>
     13    <date>$Date$</date>
     14  </sect1info>
     15 
     16  <title>DHCP-&dhcp-version; Client</title>
     17 
     18  <indexterm zone="dhcp-client">
     19    <primary sortas="b-dhclient">dhclient</primary>
     20  </indexterm>
     21 
     22  <para>The <application>DHCP</application> package comes with
     23  both a client (<command>dhclient</command>) and a server program for
     24  using DHCP.  If you want to install this package,
     25  the instructions can be found at <xref linkend="dhcp"/>. 
     26  Note that if you only want to use the client, you
     27  do <emphasis>not</emphasis> need to run the server and so do not need
     28  the startup script and links provided for the server daemon.
     29  You only need to run the DHCP server if you're providing
     30  this service to a network, and it's likely that you'll know if that's the
     31  case; if it isn't, don't run the server!  Once you have installed the
     32  package, return here for information on how to configure the client
     33  (<command>dhclient</command>).</para>
     34 
     35  <sect2 role="configuration">
     36    <title>Configuring DHCP Client</title>
     37 
     38      <para id="dhclient-service">To configure <command>dhclient</command>,
     39      you need to first install the network service script,
     40      <filename>/etc/sysconfig/network-devices/services/dhclient</filename>
     41      included in the <xref linkend="intro-important-bootscripts"/> package
     42      (as <systemitem class="username">root</systemitem>):</para>
     43     
     44      <indexterm zone="dhcp-client dhclient-service">
     45        <primary sortas="f-dhclient">dhclient (service script)</primary>
     46      </indexterm>
     47   
     48<screen role='root'><userinput>make install-service-dhclient</userinput></screen>
     49   
     50    <para id="dhclient-config1">Next, create the
     51    <filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhclient</filename>
     52    configuration file with the following commands as the <systemitem
     53    class="username">root</systemitem> user.  Adjust as
     54    necessary for additional interfaces:</para>
     55   
     56    <indexterm zone="dhcp-client dhclient-config1">
     57      <primary sortas="e-etc-sysconfig-...-dhclient">/etc/sysconfig/.../dhclient</primary>
     58    </indexterm>
     59   
     60<screen role='root'><userinput>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
     61cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhclient &lt;&lt; "EOF"
     62<literal>ONBOOT="yes"
    5363SERVICE="dhclient"
    5464DHCP_START="-q <replaceable>[add additional start parameters here]</replaceable>"
    55 DHCP_STOP="-q -r <replaceable>[add additional stop parameters here]</replaceable>"
    56 <command>EOF</command></userinput></screen>
    57 
    58 <para>For more information on the appropriate
    59 <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
    60 values, examine the man page for <command>dhclient</command>.</para>
    61 
    62 <para id="dhclient-config2">Finally, you should create the
    63 <filename>/etc/dhclient.conf</filename> file using the following
    64 commands as the root user:</para> 
    65 <indexterm zone="dhcp-client dhclient-config2">
    66 <primary sortas="e-etc-dhclient.conf">/etc/dhclient.conf</primary></indexterm>
    67 
    68 <note><para>You'll need to add a second interface definition to the file if you
    69 have more than one interface.</para></note>
    70 
    71 <screen><userinput role='root'><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
    72 # dhclient.conf
    73 
     65DHCP_STOP="-q -r <replaceable>[add additional stop parameters here]</replaceable>"</literal>
     66EOF</userinput></screen>
     67   
     68    <para>For more information on the appropriate
     69    <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
     70    values, examine the man page for <command>dhclient</command>.</para>
     71   
     72    <para id="dhclient-config2">Finally, you should create the
     73    <filename>/etc/dhclient.conf</filename> file using the following commands
     74    as the <systemitem class="username">root</systemitem> user:</para> 
     75   
     76    <indexterm zone="dhcp-client dhclient-config2">
     77      <primary sortas="e-etc-dhclient.conf">/etc/dhclient.conf</primary>
     78    </indexterm>
     79   
     80    <note>
     81      <para>You'll need to add a second interface definition to the file if you
     82      have more than one interface.</para>
     83    </note>
     84   
     85<screen role='root'><userinput>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"
     86<literal># dhclient.conf
     87   
    7488interface "eth0"{
    7589prepend domain-name-servers 127.0.0.1;
     
    7892require subnet-mask, domain-name-servers;
    7993}
    80 # end dhclient.conf
    81 <command>EOF</command></userinput></screen>
     94# end dhclient.conf</literal>
     95EOF</userinput></screen>
     96   
     97  </sect2>
    8298
    8399</sect1>
Note: See TracChangeset for help on using the changeset viewer.