nmcli connection add type bond con-name bond0 ifname bond0 bond.options 'mode=active-backup,miimon=100,downdelay=2000,updelay=5000'
nmcli connection add type ethernet slave-type bond con-name bond0-p1 ifname eth1 master $bname
nmcli connection add type ethernet slave-type bond con-name bond0-p2 ifname eth2 master $bname
nmcli connection modify bond0 ipv4.addresses 1.1.1.2/24
nmcli connection modify bond0 ipv4.gateway 1.1.1.1
nmcli connection modify bond0 ipv4.method manual
nmcli connection modify bond0 ipv6.method disabled
nmcli con up bond0