How To Setup Bridge (br0) Network on Ubuntu Linux 14.04 and 16.04 LTS

To set up a bridge network on Ubuntu Linux 14.04 and 16.04 LTS, follow these steps:

  1. Install the necessary packages:
sudo apt-get update
sudo apt-get install bridge-utils
  1. Create a bridge interface file at /etc/network/interfaces:
# Bridge interface
auto br0
iface br0 inet static
address <IP address>
netmask <netmask>
gateway <gateway>
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Here, <IP address>, <netmask>, and <gateway> should be replaced with your network’s IP address, netmask, and gateway respectively. eth0 is the physical interface that will be added to the bridge.

  1. Restart the networking service:
sudo /etc/init.d/networking restart
  1. Verify the bridge status:
brctl show

This should show the bridge status, including the bridge name, ID, and the interfaces that are added to the bridge.

Note: These steps are for Ubuntu 14.04 LTS and 16.04 LTS. The exact steps may differ on other Ubuntu versions.

Leave a Comment