man: add a simple bridge example to nmcli-examples manual page

This commit is contained in:
Jiří Klimeš 2014-02-28 13:25:54 +01:00
parent 1472d76744
commit 223962f4ad

View file

@ -218,6 +218,25 @@ $ nmcli con up Team1-slave2
automatically and you need to activate it manually.
</para>
<example><title>Adding a bridge and two slave profiles</title>
<programlisting><emphasis role="bold">
$ nmcli con add type bridge con-name TowerBridge ifname TowerBridge
$ nmcli con add type bridge-slave con-name br-slave-1 ifname ens3 master TowerBridge
$ nmcli con add type bridge-slave con-name br-slave-2 ifname ens4 master TowerBridge
$ nmcli con modify TowerBridge bridge.stp no
</emphasis></programlisting>
</example>
<para>
This example demonstrates adding a bridge master connection and two slaves. The
first command adds a master bridge connection, naming the bridge interface and
the profile as <emphasis>TowerBridge</emphasis>.
The next two commands add slaves profiles, both will be enslaved to
<emphasis>TowerBridge</emphasis>.
The first slave will be tied to <emphasis>ens3</emphasis> interface, the second to
<emphasis>ens4</emphasis>.
The last command will disable 802.1D STP for the TowerBridge profile.
</para>
<example><title>Adding an ethernet connection profile with manual IP configuration</title>
<programlisting>
<emphasis role="bold">