From bbae86d3d2997a853ca0365e8eb7a3ca7489ee09 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Fri, 25 Jan 2019 11:24:41 +0100 Subject: New upstream version 1.15.2 --- docs/api/html/nmcli-examples.html | 55 ++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 10 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 12afb409..e9d8154c 100644 --- a/docs/api/html/nmcli-examples.html +++ b/docs/api/html/nmcli-examples.html @@ -8,7 +8,7 @@ - + @@ -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,27 @@ IP4:192.168.1.12/24:192.168.1.1::192.168.1.1::

-

Example 11. Escaping colon characters in tabular mode

+

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
+$ nmcli con modify EthernetPF sriov.vfs '0 mac=00:11:22:33:44:55 vlans=10, 1 trust=true spoof-check=false'
+$ nmcli con modify EthernetPF +sriov.vfs '2 max-tx-rate=20'
+

+ This example demonstrates adding an Ethernet connection for + physical function (PF) ens4 and + configuring 3 SR-IOV virtual functions (VFs) on it. The first + VF is configured with MAC address 00:11:22:33:44:55 and VLAN + 10, the second one has the trust and + spoof-check features respectively enabled + and disabled. VF number 2 has a maximux transmission rate of + 20Mbps. The kernel is instructed to not automatically + instantiate a network interface for the VFs. +

+
+
+
+

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:
@@ -294,7 +329,7 @@ nager/ActiveConnection/9

-

Example 12. 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
@@ -332,7 +367,7 @@ fi
 

Example sessions of interactive connection editor

-

Example 13. 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
 
@@ -583,6 +618,6 @@ Connection 'ethernet-4' (de89cdeb-a3e1-4d53-8fa0-c22546c775f4) successfully
 
+
Generated by GTK-Doc V1.29
\ No newline at end of file -- cgit 1.3.0-6-gf8a5