X-Debbugs-CC: Roman Fiedler <roman.fied...@unparalleled.eu>, Michael Tokarev 
<m...@tls.msk.ru>

As stated in the documentation, bridge-utils recently added support
for the "bridge_hw" directive which allows you define a MAC address
for a bridge interface.  Changing your stanza to just this should
already work:

    iface virtbr0 inet static
      address 192.168.1.1
      netmask 255.255.255.0
      bridge_hw 86:aa:aa:aa:aa:aa

If you also use systemd, then systemd-udevd may cause trouble because
in its default configuration it will assign a randomly generated MAC
address to the bridge device which might cause a race.

I haven't tried this, but putting this udev rule into
/etc/udev/rules.d/95-bridge.rules should prevent systemd-udevd from
touching any bridge interfaces at all:

   ACTION=="add", SUBSYSTEM=="net", DEVTYPE=="bridge", ENV{TAGS}-="systemd"

Alternatively placing the file 80-bridge-utils.link from #991416
(message #17)[0] into /lib/systemd/network/ should work as well.

Regards,
Dennis Filder

0: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991416#17

Reply via email to