Bridge loses IP

LeMihu

New Member
Jul 3, 2025
6
0
1
Hello,

I have a cluster and on one of the nodes for the past few days after every restart i can't ping it.
After some troubleshooting i saw that the vmbr0 is losing IP and i have to use
Code:
ip addr add 192.168.1.240/24 dev vmbr0
so it works again
I kept getting power outages that's the reason for the repeated restarts.

Is there a permanent solution to the bridge problem?

Any help is much apreciated
 
Hey,

is address set on vmbr0 in /etc/network/interfaces?
 
Yes it is.

Code:
auto lo
iface lo inet loopback

auto enp4s0
iface enp4s0 inet manual

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.240/24
        gateway 192.168.1.1
        bridge-ports enp4s0
        bridge-stp off
        bridge-fd 0

source /etc/network/interfaces.d/*

enp4s0 is a pcie 2.5GB card
enp5s0 is the mobo nic but it's disabled
 
Triple check if there is possibly an IP address conflict. ".240" must be outside of the dynamically assigned IP address range.
 
So I have restarted the server again to test everything.

I've used cat/ etc/network/interfaces before the "ip addr..." and i got the same result.
".240" has worked great for the past moths and it continues to work great after I use the command from the initial post.
 
Can you see what ifreload -av says immediately after the reboot?
 
Code:
vmbr0: enp4s0: bridge-pathcosts: no configuration detected, resetting to default 100
enp4s0: netlink: ip link set dev enp4s0: bridge port atributes
and
Code:
vmbr0: applying bridge port configuration: ['enp4s0']
The first lines are after the restart but before running ifreload -av and the second line is after running the command. So there's a configuration file missing but i dont know where and why it suddenly dissapeared
 
Please share the whole unmodifed output. Pipe it into a file if needed. I'd also check systemctl --failed directly after a reboot.
 
Sure do. Thank you for your help and here you go

Code:
info: requesting link dump
info: requesting address dump
info: requesting netconf dump
info: loading builtin modules from ['/usr/share/ifupdown2/addons']
info: module openvswitch not loaded (module init failed: no /usr/bin/ovs-vsctl found)
info: module openvswitch_port not loaded (module init failed: no /usr/bin/ovs-vsctl found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: executing /bin/ip rule show
info: executing /bin/ip -6 rule show
warning: cannot load "address" module: cannot import name 'splat' from 'jaraco.functools' (/usr/lib/python3/dist-packages/jaraco/functools.py)
info: executing /usr/sbin/ip vrf id
info: mgmt vrf_context = False
info: executing /bin/ip addr help
info: address metric support: OK
info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found)
info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl found)
info: module openvswitch_port not loaded (module init failed: no /usr/bin/ovs-vsctl found)
info: module openvswitch not loaded (module init failed: no /usr/bin/ovs-vsctl found)
info: looking for user scripts under /etc/network
info: loading scripts under /etc/network/if-pre-up.d ...
info: loading scripts under /etc/network/if-up.d ...
info: loading scripts under /etc/network/if-post-up.d ...
info: loading scripts under /etc/network/if-pre-down.d ...
info: loading scripts under /etc/network/if-down.d ...
info: loading scripts under /etc/network/if-post-down.d ...
info: 'link_master_slave' is set. slave admin state changes will be delayed till the masters admin state change.
info: using mgmt iface default prefix eth
info: processing interfaces file /etc/network/interfaces
info: no interfaces to down ..
info: reload: scheduling up on interfaces: ['lo', 'enp4s0', 'vmbr0']
info: lo: running ops ...
info: executing /etc/network/if-pre-up.d/wireless-tools
info: executing /etc/network/if-pre-up.d/wpasupplicant
info: executing /etc/network/if-up.d/postfix
info: executing /etc/network/if-up.d/wpasupplicant
info: executing /etc/network/if-up.d/chrony
info: enp4s0: running ops ...
info: vmbr0: applying bridge port configuration: ['enp4s0']
info: vmbr0: enp4s0: bridge-pathcosts: no configuration detected, resetting to default 100
info: enp4s0: netlink: ip link set dev enp4s0: bridge port attributes
info: vrf: syncing table map to /etc/iproute2/rt_tables.d/ifupdown2_vrf_map.conf
info: vrf: dumping iproute2_vrf_map
info: {}
info: executing /etc/network/if-pre-up.d/wireless-tools
info: executing /etc/network/if-pre-up.d/wpasupplicant
info: executing /etc/network/if-up.d/postfix
info: executing /etc/network/if-up.d/wpasupplicant
info: executing /etc/network/if-up.d/chrony
info: vmbr0: running ops ...
info: vmbr0: bridge already exists
info: vmbr0: applying bridge settings
info: vmbr0: reset bridge-hashel to default: 4
info: vmbr0: reset bridge-hashmax to default: 512
info: reading '/sys/class/net/vmbr0/bridge/stp_state'
info: vmbr0: netlink: ip link set dev vmbr0 type bridge (with attributes)
info: vmbr0: port enp4s0: already processed
info: vmbr0: applying bridge configuration specific to ports
info: vmbr0: processing bridge config for port enp4s0
info: bridge mac is already inherited from enp4s0
info: executing /etc/network/if-pre-up.d/wireless-tools
info: executing /etc/network/if-pre-up.d/wpasupplicant
info: executing /etc/network/if-up.d/postfix
info: executing /etc/network/if-up.d/wpasupplicant
info: executing /etc/network/if-up.d/chrony
info: exit status 0

systemctl --failed says
Code:
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.