Network bridge slave incorrectly getting IP address (and default route)

I have created a bridge br0 using my wired Ethernet interface. This was working for a while, but something happened and now the system can’t talk to systems not on the local network and it appears that this is being caused by a my Ethernet interface getting a IP address:

# nmcli
enp10s0: connected to enp10s0
        "Realtek RTL8111/8168/8411"
        ethernet (r8169), 6C:F0:49:E2:29:85, hw, mtu 1500
        ip4 default
        inet4 192.168.1.3/24
        route4 0.0.0.0/0
        route4 192.168.0.1/32
        route4 192.168.1.0/24

br0: connected to br0
        "br0"
        bridge, BE:A6:33:C4:0A:95, sw, mtu 1500
        inet4 192.168.1.3/24
        route4 192.168.1.0/24
        route4 0.0.0.0/0
...
# ip route list
default via 192.168.0.1 dev enp10s0 proto static metric 100 
default via 192.168.1.1 dev br0 proto static metric 425 linkdown 
192.168.0.1 dev enp10s0 proto static scope link metric 100 
192.168.1.0/24 dev enp10s0 proto kernel scope link src 192.168.1.3 metric 100 
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.3 metric 425 linkdown 

The configs are:
/etc/sysconfig/network-scripts/ifcfg-enp10s0

TYPE=EthernetPreformatted text
PROXY_METHOD=none
BROWSER_ONLY=no
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp10s0
UUID=49dcc681-3d68-454a-9c02-2dc14c9fbbbb
DEVICE=enp10s0
ONBOOT=no

/etc/sysconfig/network-scripts/ifcfg-br0

STP=no
TYPE=Bridge
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=br0
UUID=a2980f71-3150-4694-858f-f35028b7180b
DEVICE=br0
ONBOOT=yes
DNS1=192.168.1.1
IPADDR=192.168.1.3
PREFIX=24
GATEWAY=192.168.1.1

/etc/sysconfig/network-scripts/ifcfg-bridge-slave-enp10s0

TYPE=Ethernet
NAME=bridge-slave-enp10s0
UUID=e083c066-afb2-4f67-9ab0-8d841d39c5c2
DEVICE=enp10s0
ONBOOT=yes
BRIDGE=br0

I’m also still seeing this in the system logs:
… NetworkManager[2631]: […] policy: set ‘enp10s0’ (enp10s0) as default for IPv4 routing and DNS

Any help would be most appreciated, thanks.

After a lot of mucking around, I’ve managed to fix this myself, it was a matter of simply removing the enp10s0 network connection:

nmcli connection delete enp10s0

Now, it looks like this:

# nmcli 
br0: connected to br0
        "br0"
        bridge, BE:A6:33:C4:0A:95, sw, mtu 1500
        ip4 default
        inet4 192.168.1.3/24
        route4 0.0.0.0/0
        route4 192.168.1.0/24
        inet6 fe80::bca6:33ff:fec4:a95/64
        route6 fe80::/64
        route6 ff00::/8

enp10s0: connected to bridge-slave-enp10s0
        "Realtek RTL8111/8168/8411"
        ethernet (r8169), 6C:F0:49:E2:29:85, hw, mtu 1500
        master br0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.