Changeset 84988c0 for chapter07/network.xml
- Timestamp:
- 07/15/2004 07:34:09 PM (20 years ago)
- Branches:
- 6.0
- Children:
- fff7530
- Parents:
- 287a4e78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/network.xml
r287a4e78 r84988c0 28 28 directory should contain subdirectories in the form of 29 29 <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network 30 interface name (such as eth0 or eth0:1)</para>30 interface name (such as eth0)</para> 31 31 32 32 <para>If you decide to rename or move this … … 46 46 IP=192.168.1.1 47 47 GATEWAY=192.168.1.2 48 NETMASK=2448 PREFIX=24 49 49 BROADCAST=192.168.1.255 50 50 EOF</userinput></screen> 51 51 52 <para>Of course, the values of those variables have to be changed 53 in every file to match the proper setup. If the ONBOOT variable is set 54 to <quote>yes</quote>, the network script will bring up the equivalent NIC (Network Interface Card) 55 during the booting of the system. 56 If set to anything but <quote>yes</quote>, the equivalent NIC will be ignored by the network script 57 and not brought up.</para> 52 <para>Of course, the values of those variables have to be changed in every file 53 to match the proper setup. If the ONBOOT variable is set to <quote>yes</quote>, 54 the network script will bring up the equivalent interface during the booting of 55 the system. If set to anything but <quote>yes</quote>, the equivalent interface 56 will be ignored by the network script and not brought up.</para> 58 57 59 <para>The SERVICE entry defines the method of obtaining the IP address. 60 The LFS bootscripts have a modular IP assignment format, and by creating 61 additional files in <filename class="directory">/etc/sysconfig/network-devices/services</filename>, you can allow 62 other IP assignment methods. This would commonly be used if you need DHCP, 63 which is addressed in the BLFS book.</para> 58 <para>The SERVICE entry defines the method of obtaining the IP address. The LFS 59 bootscripts have a modular IP assignment format, and by creating additional 60 files in 61 <filename class="directory">/etc/sysconfig/network-devices/services</filename>, 62 you can allow other IP assignment methods. This would commonly be used if you 63 need DHCP, which is addressed in the BLFS book.</para> 64 64 65 65 <para>Of course, GATEWAY should contain the IP of your default gateway, if you 66 have one. If not, then comment out the variable entirely.</para> 66 have one. If not, then don't include the GATEWAY line in the configuration 67 file.</para> 67 68 68 69 </sect2> … … 74 75 <para>If you're going to be connected to the Internet then most likely you'll 75 76 need some means of DNS name resolution to resolve Internet domain names to IP 76 addresses. This is best achieved by placing the IP address of your DNS, available from your ISP (Internet Service Provider) or network administrator, 77 into <filename>/etc/resolv.conf</filename>. Create the file by running the 78 following:</para> 77 addresses. This is best achieved by placing the IP address of your assigned DNS 78 resolver, available from your ISP (Internet Service Provider) or network 79 administrator, into <filename>/etc/resolv.conf</filename>. Create the file by 80 running the following:</para> 79 81 80 82 <screen><userinput>cat > /etc/resolv.conf << "EOF" … … 87 89 EOF</userinput></screen> 88 90 89 <para>Of course, replace <replaceable>[IP address of your nameserver]</replaceable> with the IP 90 address of the DNS most appropriate for your setup. There will often be 91 more than one entry (requirements demand secondary servers for fallback capability). The IP address may even be a router on your local network.</para> 91 <para>Of course, replace 92 <replaceable>[IP address of your nameserver]</replaceable> with the IP address 93 of the DNS resolver assigned for your use. There will often be more than one 94 entry (requirements demand secondary servers for fallback capability). The IP 95 address may even be a router on your local network.</para> 92 96 93 97 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.