ens3 --|
|--- team0 -- bridge0 + (ipv4 address)
ens8 --|
### on RHEL7.0 use this:
# for connection in $(nmcli -t --fields name,device connection | awk -F ":" ‘($2 ~ "ens{3,8}") {print $1}‘) ; do nmcli connection delete $connection ; done
# nmcli connection reload
### on RHEL7.2 use this instead, accounting to a different output syntax of "nmcli":
# for connection in $(nmcli -t --fields name,device connection | awk -F ":" ‘($1 ~ "ens[3,8]") {print $1}‘) ; do nmcli connection delete $connection ; done
# nmcli connection reload
# nmcli c add type team ifname team0 con-name team-team0
# nmcli c add type team-slave ifname ens3 con-name team-slave-ens3 master team-team0
# nmcli c add type team-slave ifname ens8 con-name team-slave-ens8 master team-team0
# nmcli connection modify team-team0 ipv4.method disabled
# nmcli c add type bridge ifname br0 con-name bridge-br0
# nmcli c mod bridge-br0 bridge.stp no
# nmcli c mod team-team0 connection.master br0 connection.slave-type bridge
# nmcli connection modify bridge-br0 ipv4.method disabled
# nmcli connection modify bridge-br0 ip4 192.168.1.10/24 gw4 192.168.1.1
# nmcli c up team-slave-ens3
# nmcli c up team-slave-ens8
# nmcli c up team-team0
# nmcli connection up bridge-br0
Configure bridge on a team interface using NetworkManager in RHEL 7
原文:http://www.cnblogs.com/echo1937/p/6237318.html