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