Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: NetworkManager fails to bring bring online a bridge slave if that slave is a VLAN interface. Version-Release number of selected component (if applicable): NetworkManager-1.8.0-0.2.rc2.fc26.x86_64 How reproducible: Always Steps to Reproduce: ETH_IFACE=$(ip route get 8.8.8.8 | head -1 | cut -f5 -d' ') nmcli c add type vlan con-name vlan-users dev ${ETH_IFACE} id 10 nmcli c add type bridge ifname br0 nmcli c modify bridge-br0 bridge.stp no nmcli c add type bridge-slave ifname ${ETH_IFACE}.10 master bridge-br0 nmcli c up "bridge-slave-${ETH_IFACE}.10" nmcli c up bridge-br0 Actual results: 1. 'brctl show' shows that the interface ${ETH_IFACE}.10 is not added to the bridge 2. Manually trying to bring up the slave interface results in 'Error: Connection activation failed: No suitable device found for this connection.' Expected results: ${ETH_IFACE}.10 is added to the bridge, and the bridge slaves come online. Additional info: Manually configuring the bridge & interface works: brctl addbr br1 brctl addif ${ETH_IFACE}.10 br1 ifconfig ${ETH_IFACE}.10 0.0.0.0 ifup br1 dhclient br1
The 'vlan-users' connection is the bridge slave and should be marked as so using the 'master' and 'slave-type' properties. There is no reason to add the 'bridge-slave-${ETH_IFACE}.10' connection. You should do instead: nmcli c add type bridge ifname br0 nmcli c modify bridge-br0 bridge.stp no nmcli c add type vlan con-name vlan-users dev ${ETH_IFACE} id 10 master bridge-br0 slave-type bridge nmcli c up bridge-br0 nmcli c up vlan-users Closing this, please reopen if needed.