首页 > Web开发 > 详细

Configure bridge on a team interface using NetworkManager in RHEL 7

时间:2016-12-30 17:02:34      阅读:261      评论:0      收藏:0      [点我收藏+]

environment

  • Red Hat Enterprise Linux 7
  • Teaming,Bridge
  • NetworkManager-1.0.6-27 and above

question

  • Is it possible to add a bridge interface over a team interface?
  • ens3 --|
           |--- team0 -- bridge0 + (ipv4 address)
    ens8 --|

Resolution  

  • Remove any existing connection profiles for the interfaces ens3 and ens8 which will be used as the bond slaves:
### 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
  • Create team interface. Below steps will create an team interface with roudrobin runner.
# 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
  • Disable IP address on the team0 interface.
# nmcli connection modify team-team0 ipv4.method disabled
  • Add a bridge on the team0 interface.
# 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
  • To assign static Ip to 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
  • Bring up all the interface.
# nmcli c up team-slave-ens3
# nmcli c up team-slave-ens8 
# nmcli c up team-team0 
# nmcli connection up bridge-br0

rootcause

  • Support for bridge on the teamd interface has been added in NetworkManager-1.0.6-27.
  • https://access.redhat.com/solutions/2181361

 

Configure bridge on a team interface using NetworkManager in RHEL 7

原文:http://www.cnblogs.com/echo1937/p/6237318.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!