• Configure bridge on a team interface using NetworkManager in RHEL 7


    SOLUTION IN PROGRESS

    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

  • 相关阅读:
    开始用博客
    nginx 移动端和PC端相互访问
    call、apply、bind的区别
    获取两个日期之间的所有日期组合
    高频前端开发问题
    图片懒加载实现
    某某公司中级前端面试题
    flex 布局
    plupload.js+php批量上传文件到阿里云oss
    H5 iframe 高度-根据内容的高度自适应 / iframe高度适配
  • 原文地址:https://www.cnblogs.com/echo1937/p/6237318.html
Copyright © 2020-2023  润新知