diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-07-10 15:06:31 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-07-10 15:06:31 +0000 |
commit | 3229c6b8a21173d078d03094e1dfc931bd6146bc (patch) | |
tree | 18c04387a74a9559938b9c3a26bad21e80574c52 /chapter07/hosts.xml | |
parent | b4ffa369d68fbce4b8e9bc30474e01630a41f303 (diff) |
Changed literallayout's to screen's
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@771 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/hosts.xml')
-rw-r--r-- | chapter07/hosts.xml | 26 |
1 files changed, 17 insertions, 9 deletions
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: </para> -<blockquote><literallayout> - <my-IP> myhost.mydomain.org aliases -</literallayout></blockquote> +<para> +<screen> +<my-IP> myhost.mydomain.org aliases +</screen> +</para> <para> It should made sure that the IP-address is in the private network IP-address range. Valid ranges are: </para> -<blockquote><literallayout> +<para> +<screen> 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 -</literallayout></blockquote> +</screen> +</para> <para> 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 <filename>/etc/hosts</filename> is created by running: </para> -<literallayout> +<para> +<screen> <userinput>cat > /etc/hosts << "EOF"</userinput> # 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) <userinput>EOF</userinput> -</literallayout> +</screen> +</para> <para> If a network card is to be configured, a new file <filename>/etc/hosts</filename> is created containing: </para> -<literallayout> +<para> +<screen> <userinput>cat > /etc/hosts << "EOF"</userinput> # 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) <userinput>EOF</userinput> -</literallayout> +</screen> +</para> <para> Of course, the 192.168.1.1 and www.mydomain.org have to be changed to the |