aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/ethnet.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/ethnet.xml')
-rw-r--r--chapter07/ethnet.xml29
1 files changed, 18 insertions, 11 deletions
diff --git a/chapter07/ethnet.xml b/chapter07/ethnet.xml
index c3db3e72d..3659c71d7 100644
--- a/chapter07/ethnet.xml
+++ b/chapter07/ethnet.xml
@@ -11,7 +11,8 @@ A new file <filename>/etc/init.d/ethnet</filename> is created containing the
following:
</para>
-<literallayout>
+<para>
+<screen>
<userinput>cat &gt; /etc/init.d/ethnet &lt;&lt; "EOF"</userinput>
#!/bin/sh
# Begin /etc/init.d/ethnet
@@ -114,7 +115,8 @@ esac
# End /etc/init.d/ethnet
<userinput>EOF</userinput>
-</literallayout>
+</screen>
+</para>
<sect2>
<title>Adding default gateway to /etc/sysconfig/network</title>
@@ -123,12 +125,14 @@ esac
If a default gateway is required to be setup, the following command does that:
</para>
-<literallayout>
+<para>
+<screen>
<userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput>
GATEWAY=192.168.1.2
GATEWAY_IF=eth0
<userinput>EOF</userinput>
-</literallayout>
+</screen>
+</para>
<para>
GATEWAY and GATEWAY_IF need to be changed to match the network setup.
@@ -153,9 +157,11 @@ identification number (or whatever a user named it).
First the nic-config directory is created by running:
</para>
-<blockquote><literallayout>
- <userinput>mkdir /etc/sysconfig/nic-config</userinput>
-</literallayout></blockquote>
+<para>
+<screen>
+<userinput>mkdir /etc/sysconfig/nic-config</userinput>
+</screen>
+</para>
<para>
@@ -163,16 +169,17 @@ Now, new files are created in that directory containing the following.
This creates a sample file ifcfg-eth0:
</para>
-<literallayout>
-<userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0
- &lt;&lt; "EOF"</userinput>
+<para>
+<screen>
+<userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0 &lt;&lt; "EOF"</userinput>
ONBOOT=yes
DEVICE=eth0
IP=192.168.1.1
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
<userinput>EOF</userinput>
-</literallayout>
+</screen>
+</para>
<para>
Of course, the values of those four variables have to be changed