[networking-guide] master: Fix: Assigning Addresses to VLAN Interfaces (e0ef542)
stephenw at fedoraproject.org
stephenw at fedoraproject.org
Sat Mar 28 22:06:03 UTC 2015
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : master
>---------------------------------------------------------------
commit e0ef5424c24f817adcb4b0c3143057feaaf0e092
Author: Stephen Wadeley <swadeley at redhat.com>
Date: Sat Mar 28 23:04:46 2015 +0100
Fix: Assigning Addresses to VLAN Interfaces
>---------------------------------------------------------------
en-US/Configure_802_1Q_VLAN_Tagging.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/en-US/Configure_802_1Q_VLAN_Tagging.xml b/en-US/Configure_802_1Q_VLAN_Tagging.xml
index dc5852c..f09c7ad 100644
--- a/en-US/Configure_802_1Q_VLAN_Tagging.xml
+++ b/en-US/Configure_802_1Q_VLAN_Tagging.xml
@@ -301,11 +301,11 @@ Connection 'VLAN12' (b796c16a-9f5f-441c-835c-f594d40e6533) successfully added.</
You can use the same <application>nmcli</application> commands to assign static and dynamic interface addresses as with any other interface.</para>
<para>
For example, a command to create a VLAN interface with a static <systemitem class="protocol">IPv4</systemitem> address and gateway is as follows:
- <screen>~]$ <command>nmcli con add type vlan con-name <replaceable>VLAN20</replaceable> ifname <replaceable>eth0</replaceable> ip4 10.10.10.10/24 \</command>
-<command>gw4 10.10.10.254</command></screen></para>
+ <screen>~]$ <command>nmcli con add type vlan con-name <replaceable>VLAN20</replaceable> ifname <replaceable>VLAN20</replaceable> id 20 \</command>
+<command>dev <replaceable>eth0</replaceable> ip4 10.10.10.10/24 gw4 10.10.10.254</command></screen></para>
<para>
To create a VLAN interface with dynamically assigned addressing, issue a command as follows:
- <screen>~]$ <command>nmcli con add type vlan con-name <replaceable>VLAN30</replaceable> ifname <replaceable>eth0</replaceable></command></screen>
+ <screen>~]$ <command>nmcli con add type vlan con-name <replaceable>VLAN30</replaceable> ifname <replaceable>VLAN30</replaceable> id 30 dev <replaceable>eth0</replaceable></command></screen>
</para>
<para>
See <xref linkend="sec-Connecting_to_a_Network_Using_nmcli" /> for examples of using <application>nmcli</application> commands to configure interfaces.
More information about the docs-commits
mailing list