Repository :
http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : master
---------------------------------------------------------------
commit 8dc84671682b17bde509f528049c517919e70373
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Thu Oct 15 23:23:13 2015 +0200
nmcli can set static routes using the CLI
---------------------------------------------------------------
en-US/Configure_Networking.xml | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/en-US/Configure_Networking.xml b/en-US/Configure_Networking.xml
index c009441..f8421f6 100644
--- a/en-US/Configure_Networking.xml
+++ b/en-US/Configure_Networking.xml
@@ -2254,9 +2254,20 @@ Note that you have to use the <option>ifname</option>
argument even if you do no
<section id="sec-Configuring_Static_Routes_Using_nmcli">
<title>Configuring Static Routes Using nmcli</title>
<para>
- To configure static routes using the <application>nmcli</application> tool,
the interactive editor mode must be used.
+ Static routes can only be set per-interface, not globally, using the
<application>nmcli</application> tool. The command line or the interactive
editor mode can be be used.
</para>
+<example id="ex-Configuring_Static_Routes_Using_nmcli">
+<title>Configuring Static Routes Using nmcli</title>
+
+<para>
+To configure a static route for an existing Ethernet connection using the command line,
enter a command as follows:
+<screen>~]# <command>nmcli connection modify eth0 +ipv4.routes
192.168.122.0/24 ipv4.gateway 10.10.10.1</command></screen>
+ This will direct traffic for the <systemitem
class="ipaddress">192.168.122.0/24</systemitem> subnet to the gateway
at <systemitem class="ipaddress">10.10.10.1</systemitem>
+</para>
+
+</example>
+
<example id="ex-Configuring_Static_Routes_Using_nmcli_Editor">
<title>Configuring Static Routes Using nmcli Editor</title>