Changeset afa198d for connect/dhcp


Ignore:
Timestamp:
07/29/2004 04:53:55 AM (20 years ago)
Author:
DJ Lucas <dj@…>
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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
912a09b6
Parents:
68df39bf
Message:

moved to new neworking setup in testing branch

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

Location:
connect/dhcp
Files:
2 edited

Legend:

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

    r68df39bf rafa198d  
    3030<screen><userinput><command>make install-service-dhclient</command></userinput></screen>
    3131
    32 <para>Next, create the <filename>ifconfig.eth0</filename>
    33 file with the following commands.  Adjust as necessary for additional
    34 interfaces.</para>
     32<para>Next, create the
     33<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhclient</filename>
     34configuration file with the following commands.  Adjust as necessary for
     35additional interfaces.</para>
    3536
    36 <para><emphasis>Note</emphasis>: this will overwrite any existing file.</para>
    37 
    38 <screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    39 ONBOOT=yes
    40 DHCP_START="<replaceable>[place appropriate start parameters here]</replaceable>"
    41 DHCP_STOP="-r <replaceable>[add additional stop parameters here]</replaceable>"
    42 SERVICE=dhclient
     37<screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
     38cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhclient &lt;&lt; "EOF"</command>
     39ONBOOT="yes"
     40SERVICE="dhclient"
     41DHCP_START="-q <replaceable>[add additional start parameters here]</replaceable>"
     42DHCP_STOP="-q -r <replaceable>[add additional stop parameters here]</replaceable>"
    4343<command>EOF</command></userinput></screen>
    4444
     
    4747values, examine the man page for <command>dhclient</command>.</para>
    4848
    49 <para> You should then create
    50 <filename>/etc/dhclient.conf</filename> using the following
    51 commands.  Append to the file if you have more than one interface:</para>
     49<para>Finally, you should create the
     50<filename>/etc/dhclient.conf</filename> file using the following
     51commands:</para> 
     52
     53<note>You'll need to add a second interface definition to the file if you
     54have more than one interface.</note>
    5255
    5356<screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
     
    6366<command>EOF</command></userinput></screen>
    6467
    65 <para>Finally, if the <acronym>DHCP</acronym> configured interface is
    66 used as your default gateway, you should remove the GATEWAY and GATEWAY_IF
    67 variables from <filename>/etc/sysconfig/network</filename>: </para>
    68 
    69 <screen><userinput><command>sed -i "s/GATEWAY/#GATEWAY/" /etc/sysconfig/network</command></userinput></screen>
    70 
    7168</sect1>
  • connect/dhcp/dhcpcd.xml

    r68df39bf rafa198d  
    111111<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
    112112
    113 <note><para>The default behavior of <command>dhcpcd</command> is to overwrite
    114 (after making backup copies) <filename>/etc/resolv.conf</filename>,
    115 <filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename> with
    116 new files containing information from the <acronym>DHCP</acronym> server. If
    117 this is undesirable, review the <command>dhcpcd</command> man page for
    118 switches to add to the <command>dhcpcd</command> command in the network
    119 service script.</para></note>
     113<para>Finally, create the
     114<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
     115configuration file using the following commands.  Adjust appropriately
     116for additional interfaces.</para>
    120117
    121 <para>Now create the <filename>ifconfig.eth0</filename> configuration
    122 file using the following commands.  Adjust appropriately for additional
    123 interfaces.</para>
    124 
    125 <para><emphasis>Note:</emphasis> This will overwrite any existing file.</para>
    126 
    127 <screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    128 ONBOOT=yes
     118<screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
     119cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"</command>
     120ONBOOT="yes"
     121SERVICE="dhcpcd"
    129122DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
    130 DHCP_STOP="-k <replaceable>[insert other stop options here]</replaceable>"
    131 SERVICE=dhcpcd
     123DHCP_STOP="-k <replaceable>[insert additional stop options here]</replaceable>"
    132124<command>EOF</command></userinput></screen>
    133125
     
    136128values, examine the man page for <command>dhcpcd</command>.</para>
    137129
    138 <para>Finally, if the <acronym>DHCP</acronym> configured interface is
    139 used as your default gateway, you should remove the GATEWAY and GATEWAY_IF
    140 variables from <filename>/etc/sysconfig/network</filename>: </para>
    141 
    142 <screen><userinput><command>sed -i "s/GATEWAY/#&amp;/" /etc/sysconfig/network</command></userinput></screen>
     130<note>The default behavior of <command>dhcpcd</command> is to overwrite
     131(after making backup copies) <filename>/etc/resolv.conf</filename>,
     132<filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename>
     133with new files containing information from the <acronym>DHCP</acronym>
     134server. If this is undesirable, review the <command>dhcpcd</command>
     135man page for switches to add to the <envar>DHCP_START</envar>
     136value.</note>
    143137
    144138</sect3>
Note: See TracChangeset for help on using the changeset viewer.