From 3229c6b8a21173d078d03094e1dfc931bd6146bc Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 10 Jul 2001 15:06:31 +0000 Subject: Changed literallayout's to screen's git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@771 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/hosts.xml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'chapter07/hosts.xml') diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml index 01684ee6d..3d8613186 100644 --- a/chapter07/hosts.xml +++ b/chapter07/hosts.xml @@ -7,21 +7,25 @@ IP-address, FQDN and possible aliases for use in the /etc/hosts file. An example is: -
- <my-IP> myhost.mydomain.org aliases -
+ + +<my-IP> myhost.mydomain.org aliases + + It should made sure that the IP-address is in the private network IP-address range. Valid ranges are: -
+ + Class Networks A 10.0.0.0 B 172.16.0.0 through 172.31.0.0 C 192.168.0.0 through 192.168.255.0 -
+ + A valid IP address could be 192.168.1.1. A valid FQDN for this IP could @@ -39,7 +43,8 @@ If a network card is not going to be configured, a new file /etc/hosts is created by running: - + + cat > /etc/hosts << "EOF" # Begin /etc/hosts (no network card version) @@ -47,14 +52,16 @@ If a network card is not going to be configured, a new file # End /etc/hosts (no network card version) EOF - + + If a network card is to be configured, a new file /etc/hosts is created containing: - + + cat > /etc/hosts << "EOF" # Begin /etc/hosts (network card version) @@ -63,7 +70,8 @@ If a network card is to be configured, a new file # End /etc/hosts (network card version) EOF - + + Of course, the 192.168.1.1 and www.mydomain.org have to be changed to the -- cgit v1.2.3-54-g00ecf