Ignore:
Timestamp:
07/14/2004 08:49:05 PM (20 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
c0155c7
Parents:
a766a93
Message:
  • Merged recent testing changes back up to unstable (bootscripts & iproute2)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/network.xml

    ra766a93 ra088964  
    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>cd /etc/sysconfig/network-devices &amp;&amp;
     42mkdir ifconfig.eth0 &amp;&amp;
     43cat &gt; ifconfig.eth0/ipv4 &lt;&lt; "EOF"
    3944ONBOOT=yes
    40 SERVICE=static
     45SERVICE=ipv4-static
    4146IP=192.168.1.1
    4247GATEWAY=192.168.1.2
    43 NETMASK=255.255.255.0
     48NETMASK=24
    4449BROADCAST=192.168.1.255
    4550EOF</userinput></screen>
     
    7681# Begin /etc/resolv.conf
    7782
     83domain {<replaceable>[Your Domain Name]</replaceable>}
    7884nameserver <replaceable>[IP address of your nameserver]</replaceable>
    7985
Note: See TracChangeset for help on using the changeset viewer.