[deployment-guide] Corrected the "Configuring Static Routes" section.

Jaromir Hradilek jhradile at fedoraproject.org
Thu Jun 9 15:45:06 UTC 2011


commit ef8b5ed55b8a111d0b97ee7cca6d293fd3f2d386
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Thu Jun 9 17:34:10 2011 +0200

    Corrected the "Configuring Static Routes" section.

 en-US/Network_Interfaces.xml |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/en-US/Network_Interfaces.xml b/en-US/Network_Interfaces.xml
index 94577a5..4800eab 100644
--- a/en-US/Network_Interfaces.xml
+++ b/en-US/Network_Interfaces.xml
@@ -1009,15 +1009,14 @@ IDLETIMEOUT=600</programlisting>
       <title>IP Command Arguments Format</title>
       <para>Define a default gateway on the first line. This is only required if the default gateway is not set via DHCP:</para>
     </formalpara>
-    <programlisting>default <replaceable>X.X.X.X</replaceable> dev <replaceable>interface</replaceable></programlisting>
-    <para>
-      <replaceable>X.X.X.X</replaceable> is the IP address of the default gateway. The <replaceable>interface</replaceable> is the interface that is connected to, or can reach, the default gateway.</para>
+    <programlisting>default via <replaceable>X.X.X.X</replaceable> dev <replaceable>interface</replaceable></programlisting>
+    <para><replaceable>X.X.X.X</replaceable> is the IP address of the default gateway. The <replaceable>interface</replaceable> is the interface that is connected to, or can reach, the default gateway.</para>
     <para>Define a static route. Each line is parsed as an individual route:</para>
     <programlisting><replaceable>X.X.X.X/X</replaceable> via <replaceable>X.X.X.X</replaceable> dev <replaceable>interface</replaceable></programlisting>
     <para>
       <replaceable>X.X.X.X/X</replaceable> is the network number and netmask for the static route. <replaceable>X.X.X.X</replaceable> and <replaceable>interface</replaceable> are the IP address and interface for the default gateway respectively. The <replaceable>X.X.X.X</replaceable> address does not have to be the default gateway IP address. In most cases, <replaceable>X.X.X.X</replaceable> will be an IP address in a different subnet, and <replaceable>interface</replaceable> will be the interface that is connected to, or can reach, that subnet. Add as many static routes as required.</para>
     <para>The following is a sample <filename>route-eth0</filename> file using the IP command arguments format. The default gateway is 192.168.0.1, interface eth0. The two static routes are for the 10.10.10.0/24 and 172.16.1.0/24 networks:</para>
-    <programlisting>default 192.168.0.1 dev eth0
+    <programlisting>default via 192.168.0.1 dev eth0
 10.10.10.0/24 via 192.168.0.1 dev eth0
 172.16.1.0/24 via 192.168.0.1 dev eth0</programlisting>
     <para>Static routes should only be configured for other subnets. The above example is not necessary, since packets going to the 10.10.10.0/24 and 172.16.1.0/24 networks will use the default gateway anyway. Below is an example of setting static routes to a different subnet, on a machine in a 192.168.0.0/24 subnet. The example machine has an eth0 interface in the 192.168.0.0/24 subnet, and an eth1 interface (10.10.10.1) in the 10.10.10.0/24 subnet:</para>


More information about the docs-commits mailing list