CentOS 7

This guide assumes you want your bridge name to be virbr0 if you want any other name you’re free to use it but you have to update the bridge name in the slave settings in master panel.

If you want to make this change permanent please follow the following instructions

For RHEL Distributions

Lets assume your network file initially may look like this /etc/sysconfig/network-scripts/ifcfg-eth0

Bash
Copy

Its safe to have a backup in case there's a misconfiguration, you can do that by copying the file and renaming it to a different name.

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak

Now lets copy contents of ifcfg-eth0 to a new file which will be our bridge file with name virbr0

nano /etc/sysconfig/network-scripts/ifcfg-virbr0

Bash
Copy

You an now save it.

Lets change the contents of our ifcfg-eth0 slightly.

Once the above is done we can restart the networking service.

service network restart

Once restart is done, if everything went well you should be able to see the bridge active.

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Bharat Bala