Ignore:
Timestamp:
07/12/2004 09:30:40 PM (20 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
6.0
Children:
e119983
Parents:
248c920
Message:
  • Network bootscripts now support directory based configurations

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@3913 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/network.xml

    r248c920 rfc26c03  
    2626<para>Which interfaces are brought up and down by the network script depends on
    2727the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This
    28 directory should contain files in the form of <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a
    29 network interface name (such as eth0 or eth0:1)</para>
     28directory should contain subdirectories in the form of
     29<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network
     30interface name (such as eth0 or eth0:1)</para>
    3031
    31 <para>If you decide to rename or move this <filename class="directory">/etc/sysconfig/network-devices</filename>
    32 directory, make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and
     32<para>If you decide to rename or move this
     33<filename class="directory">/etc/sysconfig/network-devices</filename> directory,
     34make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and
    3335update the <quote>network_devices</quote> by providing it with the new path.</para>
    3436
    35 <para>Now, new files are created in that directory.
    36 The following command creates a sample <filename>ifconfig.eth0</filename> file:</para>
     37<para>Now, new files are created in that directory.  The following command
     38creates a sample <filename>ipv4</filename> file for the
     39<filename>eth0</filename> device:</para>
    3740
    38 <screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"
     41<screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 &lt;&lt; "EOF"
    3942ONBOOT=yes
    4043SERVICE=ipv4-static
Note: See TracChangeset for help on using the changeset viewer.