Adding a bridge on top of a bonded interface that have multiple ip?

Seleena Day asked:

I have a server that has three static IP addresses. I’d like to add a bridge to these settings. I tried to add the bridge this way but it doesn’t seem to be working.

auto bond0
iface bond0 inet static
address x.x.x.108
netmask 255.255.255.100
gateway x.x.x.1
dns-nameservers 8.8.8.8 4.2.2.2
slaves eno1 eno2
bond-mode active-backup
bond-miimon 100
bond-primary eno1

auto br0
iface br0 inet static
  address x.x.x.108
  netmask 255.255.255.100
  gateway x.x.x.1
  bridge_ports bond_lan
  bridge_stp on
  bridge_fd 0
  bridge_maxwait 0

auto bond0
iface bond0 inet static
  address x.x.x.108
  netmask 255.255.255.100

auto bond0
iface bond0 inet static
  address x.x.x.110
  netmask 255.255.255.100

My answer:


There’s an obvious error here:

  bridge_ports bond_lan

You named your bond interface bond0, but mistyped it there as bond_lan.

  bridge_ports bond0

The other error is that you have added the IP addresses to the bond interface, but they have to be added to the bridge interface. Also change those to br0.

iface br0 inet static

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.