Skip to content
TrySitePrice

How To Setup Bonded (bond0) and Bridged (br0) Networking On Ubuntu LTS Server

Best/Tutorial

To set up bonded (bond0) and bridged (br0) networking on Ubuntu LTS server, follow these steps:

  1. Install the necessary packages:
sudo apt-get update

sudo apt-get install ifenslave
  1. Configure network interfaces: Edit the network interface configuration file, /etc/network/interfaces, and configure the network interfaces you want to bond. Here is an example of two bonded interfaces, eth0 and eth1, that are also part of a bridge, br0:
# The loopback network interface

auto lo

iface lo inet loopback
# The primary network interface

auto eth0

iface eth0 inet manual

bond-master bond0
# The secondary network interface

auto eth1

iface eth1 inet manual

bond-master bond0
# The bonded interface

auto bond0

iface bond0 inet dhcp

bond-mode active-backup

bond-miimon 100

bond-slaves none

# The bridge interface

auto br0

iface br0 inet dhcp

bridge_ports bond0

bridge_stp off

bridge_fd 0

  1. Restart networking: Restart networking to apply the changes:
sudo /etc/init.d/networking restart
  1. Verify the setup: Verify the bond and bridge setup by checking the status of the interfaces:
cat /proc/net/bonding/bond0

brctl show

That’s it! You’ve successfully set up bonded (bond0) and bridged (br0) networking on Ubuntu LTS server. You should now have a more robust and flexible network configuration.

(louisvilleroofing.com)