#nmcli con add type team con-name CNAME ifname INAME [config JSON]
'{"runner":{"name":"METHOD"}}'
[root@kvm7 ~]# man 5 teamd.conf
[root@kvm5 ~]# nmcli device DEVICE TYPE STATE CONNECTION eth0 ethernet connected eth0 eth1 ethernet disconnected -- eth2 ethernet disconnected -- lo loopback unmanaged --
[root@kvm5 ~]# nmcli connection add type team con-name team0 ifname team0 \
config '{"runner": {"name": "activebackup"}}'
Connection 'team0' (e1d07964-d037-4d1d-ae23-4a6d6430d82d) successfully added.
[root@kvm5 ~]# nmcli device DEVICE TYPE STATE CONNECTION eth0 ethernet connected eth0 team0 team connecting (getting IP configuration) team0 eth1 ethernet disconnected -- eth2 ethernet disconnected -- lo loopback unmanaged -- [root@kvm5 ~]# nmcli connection NAME UUID TYPE DEVICE team0 e1d07964-d037-4d1d-ae23-4a6d6430d82d team team0 eth0 657b29a2-b7c0-4176-a955-b12aadf9c156 802-3-ethernet eth0
[root@kvm5 ~]# nmcli connection add type team-slave con-name \ team0-port1 ifname eth1 master team0 Connection 'team0-port1' (e150c255-b7a2-47d8-977d-e1f429249aaf) successfully added. [root@kvm5 ~]# nmcli connection add type team-slave con-name \ team0-port2 ifname eth2 master team0 Connection 'team0-port2' (ebb32a20-01d3-4a36-8501-8fd02c5e9b20) successfully added.
[root@kvm5 ~]# systemctl restart network.service
[root@kvm5 ~]# teamdctl team0 state
setup:
runner: activebackup
ports:
eth1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
eth2
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
runner:
active port: eth1
[root@kvm5 ~]# nmcli connection modify team0 \ ipv4.addresses 192.168.122.15/24 ipv4.method manual
[root@kvm5 ~]# nmcli connection up team0 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/119)
[root@kvm5 ~]# ifconfig team0
team0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.15 netmask 255.255.255.0 broadcast 192.168.122.255
inet6 fe80::5054:ff:fe00:51 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:00:00:51 txqueuelen 0 (Ethernet)
RX packets 21 bytes 798 (798.0 B)
RX errors 0 dropped 54 overruns 0 frame 0
TX packets 33 bytes 5408 (5.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0