Changeset a088964 for chapter07/network.xml
- Timestamp:
- 07/14/2004 08:49:05 PM (20 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/network.xml
ra766a93 ra088964 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>cd /etc/sysconfig/network-devices && 42 mkdir ifconfig.eth0 && 43 cat > ifconfig.eth0/ipv4 << "EOF" 39 44 ONBOOT=yes 40 SERVICE= static45 SERVICE=ipv4-static 41 46 IP=192.168.1.1 42 47 GATEWAY=192.168.1.2 43 NETMASK=2 55.255.255.048 NETMASK=24 44 49 BROADCAST=192.168.1.255 45 50 EOF</userinput></screen> … … 76 81 # Begin /etc/resolv.conf 77 82 83 domain {<replaceable>[Your Domain Name]</replaceable>} 78 84 nameserver <replaceable>[IP address of your nameserver]</replaceable> 79 85
Note:
See TracChangeset
for help on using the changeset viewer.