具体操作步骤:

举例1:
nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup"}}'
nmcli connection modify team0 ipv4.addresses 172.16.3.40/24 connection.autoconnect yes ipv4.method manual
nmcli connection add con-name team0-slave1 ifname eth1 type team-slave master team0
nmcli connection add con-name team0-slave2 ifname eth2 type team-slave master team0
nmcli connection up team0

删除
nmcli connection delete team0-slave1
nmcli connection delete team0-slave2
nmcli connection delete team0
nmcli connection reload

举例2:
nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup"}}' ip4 192.168.88.8/24 gw4 192.168.88.1
nmcli connection modify team0 ipv4.dns 8.8.8.8
nmcli connection add con-name team0-eth0 type team-slave ifname ens35 master team0
nmcli connection add con-name team0-eth1 type team-slave ifname ens36 master team0
nmcli connection up team0
nmcli connection up team0-eth0
nmcli connection up team0-eth1
teamdctl team0 stat
ping 192.168.88.1
teamnl team0 ports
teamnl team0 getoption activeport
teanml team0 setoption activeport 6
teamnl team0 getoption activeport
teamdctl team0 stat
nmcli device disconnect ens35
teamnl team0 ports
teamnl team0 getoption activeport
nmcli device connect ens36
teamnl team0 ports