can't get bridge on bond to work

Issues related to configuring your network
Post Reply
ariedederde
Posts: 2
Joined: 2019/11/16 13:20:28

can't get bridge on bond to work

Post by ariedederde » 2019/11/16 13:42:43

Hi,

I saw quite some posts about bridging on CentOS 8, but no answer to this one.

This works

LACP bond "bond0" with two physical interfaces eno1 and eno2 having 192.168.x.x IP address on the bond0 interface. Host is reachable.

What I cannot get to work

Adding bridge interface "br0" on top of bond0: removing the IP address from bond0 and setting it on br0.

  • nmcli or nmtui adds an additional bond interface which I don't want nor need
  • adding the br0 ifcfg-br0 in network-scripts manually (like I get to work on CentOS 7) does not work
  • doing the whole thing from scratch (deleting all ifcfg files, restart host) with nmcli or nmtui gives no working bridge


Someone got this working?

Thanks in advance,
Arie.

User avatar
jlehtone
Posts: 2432
Joined: 2007/12/11 08:17:33
Location: Finland

Re: can't get bridge on bond to work

Post by jlehtone » 2019/11/17 16:43:55

I would presume (cannot test) that:
1. Create bond (or team) connection
2. Enslave interfaces to it
3. Create bridge connection
4. Edit the bond to add the bridge as the "master" (connection.master, connection.slave-type)

ariedederde
Posts: 2
Joined: 2019/11/16 13:20:28

Re: can't get bridge on bond to work

Post by ariedederde » 2019/11/18 07:57:27

After some more fiddling around, I have come to the conclusion that, where on CentOS 7 and lower this was not very important, on CentOS 8 the UUID in an ifcfg file is mandatory for NetworkManager to keep track of the connections. Can someone confirm this?

So you basically don't need all this nmcli and nmtui stuff, as long as you know what you are doing. I manually created a bridge interface and used /usr/bin/uuidgen to create a value for UUID. My config now is as follows:

ifcfg-eno1

Code: Select all

TYPE=Ethernet
NAME=eno1
UUID=eb63f004-addf-4e0b-ad8c-631c38d3b60a
DEVICE=eno1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
MASTER_UUID=e49f2b77-7899-4b06-8dfb-4195bf7406ad
ifcfg-eno2

Code: Select all

TYPE=Ethernet
NAME=eno2
UUID=df357d4d-521b-40ad-8828-83a9a4d35669
DEVICE=eno2
ONBOOT=yes
MASTER=bond0
SLAVE=yes
MASTER_UUID=e49f2b77-7899-4b06-8dfb-4195bf7406ad
ifcfg-bond0

Code: Select all

BONDING_OPTS="ad_actor_sys_prio=65535 ad_select=stable ad_user_port_key=0 all_slaves_active=0 arp_all_targets=any downdelay=0 fail_over_mac=none lacp_rate=slow lp_interval=1 miimon=100 min_links=0 mode=802.3ad num_grat_arp=1 num_unsol_na=1 primary_reselect=always resend_igmp=1 updelay=0 use_carrier=1 xmit_hash_policy=layer2"
TYPE=Bond
BONDING_MASTER=yes
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
NAME=bond0
UUID=e49f2b77-7899-4b06-8dfb-4195bf7406ad
DEVICE=bond0
ONBOOT=yes
BRIDGE=br0
ifcfg-br0

Code: Select all

TYPE=Bridge
IPADDR=192.168.254.253
PREFIX=24
GATEWAY=192.168.254.254
DNS1=192.168.254.53
DNS2=192.168.254.153
DOMAIN=this.example.com
DEFROUTE=yes
NAME=br0
UUID=282f5aec-0144-49cb-981d-486104305ef4
DEVICE=br0
ONBOOT=yes
DELAY=0
STP=no

Post Reply

Return to “CentOS 8 - Networking Support”