diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-07-12 21:30:40 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-07-12 21:30:40 +0000 |
commit | fc26c03589d343c0562b6295cdd96363f50ecda4 (patch) | |
tree | 8b8f42bbd1a548d52bb09cb4d68a9eafc05c2574 /chapter07/network.xml | |
parent | 248c920e828bc5caf970f45af7c238d88f22b2bf (diff) |
* Network bootscripts now support directory based configurations
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@3913 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/network.xml')
-rw-r--r-- | chapter07/network.xml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml index d11e63502..68359f269 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -25,17 +25,20 @@ run-level directories <para>Which interfaces are brought up and down by the network script depends on the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This -directory should contain files in the form of <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a -network interface name (such as eth0 or eth0:1)</para> +directory should contain subdirectories in the form of +<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network +interface name (such as eth0 or eth0:1)</para> -<para>If you decide to rename or move this <filename class="directory">/etc/sysconfig/network-devices</filename> -directory, make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and +<para>If you decide to rename or move this +<filename class="directory">/etc/sysconfig/network-devices</filename> directory, +make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and update the <quote>network_devices</quote> by providing it with the new path.</para> -<para>Now, new files are created in that directory. -The following command creates a sample <filename>ifconfig.eth0</filename> file:</para> +<para>Now, new files are created in that directory. The following command +creates a sample <filename>ipv4</filename> file for the +<filename>eth0</filename> device:</para> -<screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF" +<screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 << "EOF" ONBOOT=yes SERVICE=ipv4-static IP=192.168.1.1 |