[networking-guide] master: Configuring Static Routes Using nmcli (8937fdb)
stephenw at fedoraproject.org
stephenw at fedoraproject.org
Tue Jan 6 20:41:27 UTC 2015
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : master
>---------------------------------------------------------------
commit 8937fdb598cc2586dc4f80b98795be0d6584b914
Author: Stephen Wadeley <swadeley at redhat.com>
Date: Tue Jan 6 21:35:52 2015 +0100
Configuring Static Routes Using nmcli
>---------------------------------------------------------------
en-US/Configure_Networking.xml | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/en-US/Configure_Networking.xml b/en-US/Configure_Networking.xml
index 7467540..394d66a 100644
--- a/en-US/Configure_Networking.xml
+++ b/en-US/Configure_Networking.xml
@@ -2239,6 +2239,43 @@ Note that you have to use the <option>ifname</option> argument even if you do no
</para>
</section>
+<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.
+</para>
+
+<example id="ex-Configuring_Static_Routes_Using_nmcli_Editor">
+<title>Configuring Static Routes Using nmcli Editor</title>
+
+<para>
+To configure a static route for an Ethernet connection using the interactive editor, issue commands as follows:
+ <screen>~]$ <command>nmcli con edit type ethernet con-name <replaceable>eth0</replaceable></command>
+
+===| nmcli interactive connection editor |===
+
+Adding a new '802-3-ethernet' connection
+
+Type 'help' or '?' for available commands.
+Type 'describe [>setting<.>prop<]' for detailed property description.
+
+You may edit the following settings: connection, 802-3-ethernet (ethernet), 802-1x, ipv4, ipv6, dcb
+nmcli> set ipv4.routes 192.168.122.0/24 10.10.10.1
+nmcli>
+nmcli> save persistent
+Saving the connection with 'autoconnect=yes'. That might result in an immediate activation of the connection.
+Do you still want to save? [yes] yes
+Connection 'eth0' (704a5666-8cbd-4d89-b5f9-fa65a3dbc916) successfully saved.
+nmcli> quit
+~]$</screen>
+</para>
+
+</example>
+
+
+</section>
+
+
</section>
More information about the docs-commits
mailing list