From 9a6dcbf895f9da01768e64b73cec88c16157d91e Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 26 Mar 2019 23:25:23 +0100 Subject: New upstream version 1.16.0 --- docs/api/html/nmcli-examples.html | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'docs/api/html/nmcli-examples.html') diff --git a/docs/api/html/nmcli-examples.html b/docs/api/html/nmcli-examples.html index 0a84e48c..e9d8154c 100644 --- a/docs/api/html/nmcli-examples.html +++ b/docs/api/html/nmcli-examples.html @@ -173,7 +173,22 @@ B,DISPATCH
-

Example 6. Adding a bonding master and two slave connection profiles

+

Example 6. Activating a VPN connection profile requiring interactive password input

+
+
$ nmcli --ask con up my-vpn-con
+

+ This command activates a VPN connection profile enabling nmcli to interact with the user + ('--ask'): this will allow nmcli to prompt for the VPN password on the command line when + the password-flags are set to '0x02' ('always ask', see + nm-settings(5) + ). + This is particularly useful for OTP based VPNs, as the user needs to be prompted for the + password each time the connection is activated. +

+
+
+
+

Example 7. Adding a bonding master and two slave connection profiles

$ nmcli con add type bond ifname mybond0 mode active-backup
 $ nmcli con add type ethernet ifname eth1 master mybond0
@@ -189,7 +204,7 @@ B,DISPATCH

-

Example 7. Adding a team master and two slave connection profiles

+

Example 8. Adding a team master and two slave connection profiles

$ nmcli con add type team con-name Team1 ifname Team1 config team1-master-json.conf
 $ nmcli con add type ethernet con-name Team1-slave1 ifname em1 master Team1
@@ -217,7 +232,7 @@ B,DISPATCH

-

Example 8. Adding a bridge and two slave profiles

+

Example 9. Adding a bridge and two slave profiles

$ nmcli con add type bridge con-name TowerBridge ifname TowerBridge
 $ nmcli con add type ethernet con-name br-slave-1 ifname ens3 master TowerBridge
@@ -236,7 +251,7 @@ B,DISPATCH

-

Example 9. Adding an ethernet connection profile with manual IP configuration

+

Example 10. Adding an ethernet connection profile with manual IP configuration

$ nmcli con add con-name my-con-em1 ifname em1 type ethernet \
   ip4 192.168.100.100/24 gw4 192.168.100.1 ip4 1.2.3.4 ip6 abbe::cafe
@@ -259,7 +274,7 @@ B,DISPATCH

-

Example 10. Convenient field values retrieval for scripting

+

Example 11. Convenient field values retrieval for scripting

$ nmcli -g ip4.address connection show my-con-eth0
 192.168.1.12/24
@@ -279,7 +294,7 @@ IP4:192.168.1.12/24:192.168.1.1::192.168.1.1::

-

Example 11. Adding an Ethernet connection and configuring SR-IOV VFs

+

Example 12. Adding an Ethernet connection and configuring SR-IOV VFs

$ nmcli con add type ethernet con-name EthernetPF ifname em1
 $ nmcli con modify EthernetPF sriov.total-vfs 3 sriov.autoprobe-drivers false
@@ -299,7 +314,7 @@ IP4:192.168.1.12/24:192.168.1.1::192.168.1.1::

-

Example 12. Escaping colon characters in tabular mode

+

Example 13. Escaping colon characters in tabular mode

$ nmcli -t -f general -e yes -m tab dev show eth0
 GENERAL:eth0:ethernet:Intel Corporation:82567LM Gigabit Network Connection:
@@ -314,7 +329,7 @@ nager/ActiveConnection/9

-

Example 13. nmcli usage in a NetworkManager dispatcher script to make Ethernet and Wi-Fi mutually exclusive

+

Example 14. nmcli usage in a NetworkManager dispatcher script to make Ethernet and Wi-Fi mutually exclusive

 #!/bin/bash
@@ -352,7 +367,7 @@ fi
 

Example sessions of interactive connection editor

-

Example 14. Adding an ethernet connection profile in interactive editor (a)

+

Example 15. Adding an ethernet connection profile in interactive editor (a)

$ nmcli connection edit type ethernet
 
-- 
cgit 1.3.0-6-gf8a5