Changeset 36f9a23 for connect/dhcp


Ignore:
Timestamp:
09/21/2003 03:11:22 AM (21 years ago)
Author:
Larry Lawrence <larry@…>
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_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
b2a9f85
Parents:
110ec35a
Message:

update intro to ppp

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

Location:
connect/dhcp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • connect/dhcp/bootscripts.xml

    r110ec35a r36f9a23  
    11<sect1 id="dhcpclient" xreflabel="Configuring the LFS bootscripts to support DHCP clients">
    22<?dbhtml filename="configdhcp.html" dir="connect"?>
    3 <title>Configuring the LFS bootscripts to support DHCP clients</title>
     3<title>Configuring the <acronym>LFS</acronym> bootscripts to support <acronym>DHCP</acronym> clients</title>
    44
    55<sect2><title>Config files</title>
     
    1313
    1414<para>Note that on this and the following pages, we
    15 use <userinput>eth0</userinput> as the example interface.
     15use <emphasis role="strong">eth0</emphasis> as the example interface.
    1616If you want to configure a different (or more than one) interface, simply
    17 replace <userinput>eth0</userinput> with the interface you wish to use.</para>
     17replace <emphasis role="strong">eth0</emphasis> with the interface you wish to
     18use.</para>
    1819
    19 <para>These instructions will convert the configuration files from LFS
    20 (a static configuration) to a configuration using the DHCP protocol. 
    21 Note that static and DHCP-based interfaces can co-exist on a LFS system.  To
    22 do this, you should only make the alterations to those interfaces which
    23 need to support DHCP.  All of the instructions on this page are applicable
    24 no matter which DHCP client you intend to use.</para>
     20<para>These instructions will convert the configuration files from
     21<acronym>LFS</acronym> (a static configuration) to a configuration using the
     22<acronym>DHCP</acronym> protocol. Note that static and
     23<acronym>DHCP</acronym>-based interfaces can co-exist on a
     24<acronym>LFS</acronym> system.  To do this, you should only make the
     25alterations to those interfaces which need to support
     26<acronym>DHCP</acronym>.  All of the instructions on this page are applicable
     27no matter which <acronym>DHCP</acronym> client you intend to use.</para>
    2528
    2629<para>If the interface you intend to use as your default gateway is going to
    27 use DHCP, the first step is to remove the <envar>GATEWAY</envar> and
    28 <envar>GATEWAY_IF</envar> variables
     30use <acronym>DHCP</acronym>, the first step is to remove the <envar>GATEWAY
     31</envar> and <envar>GATEWAY_IF</envar> variables
    2932from <filename>/etc/sysconfig/network</filename>.  This will only need to be
    3033done once.</para>
    3134
    32 <para><screen><userinput>cd /etc/sysconfig &amp;&amp;
     35<screen><userinput><command>cd /etc/sysconfig &amp;&amp;
    3336cp network network.bak &amp;&amp;
    34 sed "s/GATEWAY/# GATEWAY/" network.bak > network</userinput></screen></para>
     37sed "s/GATEWAY/# GATEWAY/" network.bak > network</command></userinput></screen>
    3538
    3639<para>You then need to create scripts which will override the default
    37 network scripts and provide DHCP support.  These two scripts are generic and
    38 so for use with both DHCP clients.  First, the
    39 <filename>ifup-eth0</filename> script:</para>
     40network scripts and provide <acronym>DHCP</acronym> support.  These two scripts
     41are generic and so for use with both <acronym>DHCP</acronym> clients.  First,
     42the <filename>ifup-eth0</filename> script:</para>
    4043
    41 <para><screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifup-eth0 &lt;&lt; "EOF" </userinput>
     44<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifup-eth0 &lt;&lt; "EOF" </command>
    4245#!/bin/sh
    4346
     
    4952modprobe eth0
    5053loadproc $DHCP_PROG $DHCP_START
    51 <userinput>EOF</userinput></screen></para>
     54<command>EOF</command></userinput></screen>
    5255
    5356<para>Then the <filename>ifdown-eth0</filename> script:</para>
    5457
    55 <para><screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifdown-eth0 &lt;&lt; "EOF" </userinput>
     58<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifdown-eth0 &lt;&lt; "EOF" </command>
    5659#!/bin/sh
    5760
     
    6366$DHCP_PROG $DHCP_STOP
    6467evaluate_retval
    65 <userinput>EOF</userinput></screen></para>
     68<command>EOF</command></userinput></screen>
    6669
    6770<para>Finally, we need to make these scripts executable:</para>
    6871
    69 <para><screen><userinput>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 &amp;&amp;
    70 chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</userinput></screen></para>
     72<screen><userinput><command>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 &amp;&amp;
     73chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</command></userinput></screen>
    7174
    7275</sect2>
  • connect/dhcp/dhcp-client.xml

    r110ec35a r36f9a23  
    33<title>dhcp-&dhcp-version;</title>
    44
    5 <para>The dhcp package comes with both a client (called dhclient) and a
    6 server program for using DHCP.  If you want to install this package,
     5<para>The <application>dhcp</application> package comes with both a client
     6(called <command>dhclient</command>) and a server program for using
     7<acronym>DHCP</acronym>.  If you want to install this package,
    78the instructions can be found at <xref linkend="dhcp"/>. 
    89Note that if you only want to use the client, you
    910do <emphasis>not</emphasis> need to run the server and so do not need
    1011the startup script and links provided for the server daemon.
    11 You only need to run the DHCP server if you're providing this
    12 service to a network, and it's likely that you'll know if that's the
     12You only need to run the <acronym>DHCP</acronym> server if you're providing
     13this service to a network, and it's likely that you'll know if that's the
    1314case; if it isn't, don't run the server!  Once you have installed the
    1415package, return here for information on how to configure the client
    15 (dhclient).</para>
     16(<command>dhclient</command>).</para>
    1617
    17 <para>To configure dhclient, you need to create two files,
     18<para>To configure <command>dhclient</command>, you need to create two files,
    1819<filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and
    1920<filename>/etc/dhclient.conf</filename>.</para>
     
    2324existing file):</para>
    2425
    25 <para><screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
    26 cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</userinput>
     26<screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
     27cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    2728ONBOOT=yes
    2829DHCP_PROG=/sbin/dhclient
    2930DHCP_START=&lt;appropriate start parameters&gt;
    3031DHCP_STOP=-r
    31 <userinput>EOF</userinput></screen></para>
     32<command>EOF</command></userinput></screen>
    3233
    3334<para>For more information on the appropriate
    3435<envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
    35 values, examine the man page for dhclient.</para>
     36values, examine the man page for <command>dhclient</command>.</para>
    3637
    3738<para>Next, you should then create
    3839the <filename>/etc/dhclient.conf</filename> using the following command:</para>
    3940
    40 <para><screen><userinput>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</userinput>
     41<screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
    4142# dhclient.conf
    4243
     
    4849}
    4950# end dhclient.conf
    50 <userinput>EOF</userinput></screen></para>
     51<command>EOF</command></userinput></screen>
    5152
    5253</sect1>
  • connect/dhcp/dhcp.xml

    r110ec35a r36f9a23  
    11<chapter id="connect-dhcp">
    22<?dbhtml filename="dhcp.html" dir="connect"?>
    3 <title>DHCP Clients</title>
     3<title><acronym>DHCP</acronym> Clients</title>
    44
    5 <para>DHCP stands for Dynamic Host Configuration Protocol.  It is a
    6 protocol which is used by many sites to automatically provide
    7 information such as IP addresses, subnet masks and routing information
    8 to computers.  If your network uses DHCP, you will need a DHCP client
    9 in order to connect to it.  DHCP is also used by some cable
    10 modems.</para>
     5<para><acronym>DHCP</acronym> stands for Dynamic Host Configuration Protocol. 
     6It is a protocol which is used by many sites to automatically provide
     7information such as <acronym>IP</acronym> addresses, subnet masks and routing
     8information to computers.  If your network uses <acronym>DHCP</acronym>, you
     9will need a <acronym>DHCP</acronym> client in order to connect to it.
     10<acronym>DHCP</acronym> is also used by some cable modems.</para>
    1111
    12 <para>We currently provide installation instructions for two DHCP
    13 clients, dhclient (from the dhcp package) and dhcpcd.  We begin with a page
    14 which shows how to alter the LFS bootscripts for generic DHCP support.
    15 We then present the two sets of installation instructions which also discuss
     12<para>We currently provide installation instructions for two
     13<acronym>DHCP</acronym> clients, <command>dhclient</command> (from the
     14<application>dhcp</application> package) and <command>dhcpcd</command>.  We
     15begin with a page which shows how to alter the <acronym>LFS</acronym>
     16bootscripts for generic <acronym>DHCP</acronym> support. We then present the
     17two sets of installation instructions which also discuss
    1618how to create an appropriate configuration file to work with the
    17 DHCP client of your choice.</para>
     19<acronym>DHCP</acronym> client of your choice.</para>
    1820
    1921&connect-dhcp-bootscripts;
Note: See TracChangeset for help on using the changeset viewer.