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 --- man/nmcli-examples.xml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'man/nmcli-examples.xml') diff --git a/man/nmcli-examples.xml b/man/nmcli-examples.xml index 0b15f112..e777c326 100644 --- a/man/nmcli-examples.xml +++ b/man/nmcli-examples.xml @@ -178,6 +178,19 @@ B,DISPATCH + 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-settings5 + ). + This is particularly useful for OTP based VPNs, as the user needs to be prompted for the + password each time the connection is activated. + + + 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 @@ -272,6 +285,23 @@ IP4:192.168.1.12/24:192.168.1.1::192.168.1.1:: + 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. + + Escaping colon characters in tabular mode $ nmcli -t -f general -e yes -m tab dev show eth0 -- cgit 1.3.0-6-gf8a5