Changeset fc26c03 for chapter07/network.xml
- Timestamp:
- 07/12/2004 09:30:40 PM (20 years ago)
- Branches:
- 6.0
- Children:
- e119983
- Parents:
- 248c920
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/network.xml
r248c920 rfc26c03 26 26 <para>Which interfaces are brought up and down by the network script depends on 27 27 the 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> 28 directory should contain subdirectories in the form of 29 <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network 30 interface name (such as eth0 or eth0:1)</para> 30 31 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, 34 make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and 33 35 update the <quote>network_devices</quote> by providing it with the new path.</para> 34 36 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 38 creates a sample <filename>ipv4</filename> file for the 39 <filename>eth0</filename> device:</para> 37 40 38 <screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"41 <screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 << "EOF" 39 42 ONBOOT=yes 40 43 SERVICE=ipv4-static
Note:
See TracChangeset
for help on using the changeset viewer.