0

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
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
  dns-nameservers 8.8.8.8 4.2.2.2
  bridge_ports bond0
  bridge_stp on
  bridge_fd 0
  bridge_maxwait 0

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

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

1 Answer 1

1

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
2
  • Thank you for your reply, I've edit my question and added your advice. But it doesn't seem to work. Apr 25, 2019 at 17:14
  • @SeleenaDay Your netmask looks wrong too. Contact your network administrator to learn the correct IP addresses and netmask. Apr 25, 2019 at 17:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .