diff options
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 |