Configuring Network Teaming on RHEL 7

RHEL 7

Using NetworkManager

Create a team interface:

nmcli connection add type team con-name team0 ifname team0 team.config \
'{
"device": "team0",
"runner": {"name": "activebackup"},
"link_watch": {
"name": "ethtool",
"delay_up": 2500,
"delay_down": 1000
},
"ports": {
"enp7s0": {
"prio": -10,
"sticky": true
},
"enp8s0": {
"prio": 100
}
}
}'

Assign the port interfaces to the team:

nmcli con add type ethernet slave-type team con-name team0-port1 ifname enp7s0 master team0
nmcli con add type ethernet slave-type team con-name team0-port2 ifname enp8s0 master team0

Configure the IPv4 settings:

nmcli con modify team0 ipv4.addresses '192.0.2.1/24' ipv4.gateway '192.0.2.254' ipv4.dns '192.0.2.253' ipv4.dns-search 'example.com' ipv4.method manual

Enables all ports automatically when the bond is enabled:

nmcli con modify team0 connection.autoconnect-slaves 1

Activate the connection:

nmcli con up team0

Display the status of the team:

teamdctl team0 state