Linux Debian Mint Ubuntu Bridge br0 gets random IP

This can break things easily in remove environments where it was normally easy to convert a normal eth0 to a bridge under br0, and that bridge would normally have the same MAC address by default, which is desirable for most situations.

In Debian 11 this is different for some reason now.

https://unix.stackexchange.com/questions/681013/bridge-gets-random-mac-instead-of-port-address

One simple solution is to set the hwaddress in /etc/network/interfaces:

iface br0 inet static
bridge_ports eth0
    address 172.16.1.3
    netmask 255.255.255.0
    gateway 172.16.1.1
    hwaddress 00:1d:e0:00:13:58

 

Set the hwaddress to the mac address of eth0 to solve this problem.  What happens is that if you don't do this, the server will become inaccessible after some random amount of time, at least initially until a reboot or network restart.

This may be a result of poor cloning without regenerating the machine-id:

#possibly related, we need to delete the machine-id and generate a new one
rm /var/lib/dbus/machine-id
rm /etc/machine-id

Regenerate new machine-id:

The file lives in /etc and /var/lib/dbus and both must match.

dbus-uuidgen --ensure=/etc/machine-id

cp /etc/machine-id /var/lib/dbus/


Tags:

linux, debian, mint, ubuntu, br, ipthis, environments, convert, eth, default, desirable, https, unix, stackexchange, hwaddress, etc, interfaces, iface, inet, static, bridge_ports, netmask, gateway, server, inaccessible, initially, reboot, restart, cloning, regenerating, delete, generate, rm, var, lib, dbus, regenerate, uuidgen, ensure, cp,

Latest Articles

  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist