diff --git a/man/nmcli-examples.xml b/man/nmcli-examples.xml index 32fc567b0..e777c326d 100644 --- a/man/nmcli-examples.xml +++ b/man/nmcli-examples.xml @@ -285,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