Setup Linux Network Bridges on CentOS for Nova Networking

If you’re using Platform9 Managed OpenStack with Nova Networking, Platform9 requires one or more Linux bridges on your Linux servers. The network bridges are used in networking for Virtual Machines. This tutorial will guide you through a step-by-step process to create Linux bridges on CentOS servers.

IMPORTANT: If using Platform9 Managed OpenStack with Neutron Networking,  follow Neutron Pre-requisites for Linux/KVM to prepare your physical servers.

Step 1 – Install Prerequisites

Install required packages  needed for Linux bridge.

If using CentOS version 6.x or below:

[bash]sudo yum install bridge-utils
sudo yum install tunctl[/bash]

If using CentOS version 7.x:

[bash]sudo yum install bridge-utils[/bash]

Step 2 – Disable Network Manager

NetworkManager does not support bridging and therefore must be disabled to setup Linux bridge networking.

[bash]chkconfig NetworkManager off
chkconfig network on
service NetworkManager stop
service network start[/bash]

NOTE: Alternatively, you can add “NM_CONTROLLED=no” to the ifcfg-* script below, and then you do not have to turn off NetworkManager.

Step 3 – Create A Bridge Configuration File

A good convention to follow is to name your Linux bridge after the VLAN to which the bridge is being mapped to (if any). Create file /etc/sysconfig/network-scripts/ifcfg-<your-bridge-name>

[bash]vi /etc/sysconfig/network-scripts/ifcfg-<your-bridge-name>[/bash]

Edit the file you just created and add the following parameters along with appropriate values:


Step 4 – Make Your Network Interface Slave To The Bridge Interface

Assuming you would like to map eth0 interface to this bridge, edit the network script file and add following line to it.

[bash]# this makes the network interface slave to the bridge

Step 5 – Restart Networking

You must now restart networking or reboot OS to make the changes reflect.

[bash]sudo service network restart[/bash]

Step 6 – Network Discovered By Platform9

At this point, your bridge device is successfully configured. If this server has been added to Platform9, the new bridge device will be discovered as a new network by Platform9 within few minutes, and reported as part of the ‘Network’ tab in Infrastructure view.

The browser you are using is outdated. For the best experience please download or update your browser to one of the following:

State of Kubernetes FinOps Survey – Win 13 prizes including a MacBook Air.Start Now