In this guide, I will use my existing adaptor “eno16777736” for bridging. Now, it’s the time to modify the network configuration of the existing adaptor in such a way that it points to a bridge interface.
Place the following content into that file, modify it according to your environment. Also, update the DEVICE=”” line in the configuration file. If you would like to use the different name for network bridge, then create a file like ifcfg. # vi /etc/sysconfig/network-scripts/ifcfg-virbr0 To create a network bridge, create a file called “ ifcfg-virbr N” replacing “ N” with a number, such as “ 0” in the “ /etc/sysconfig/network-scripts/“.
# yum install bridge-utils -y Create a Network Bridge on CentOS 7 Install bridge-utils for controlling the network adaptors. If the module is not loaded, you can load it using the following command. Vermagic: 3.10.86_64 SMP mod_unload modversions # modinfo bridgeįilename: /lib/modules/3.10.86_64/kernel/net/bridge/bridge.ko Use the following command to verify whether the module is loaded or not. Install ModuleĬentOS 7 comes with bridging module loaded on system boot by default. This network bridge allows virtual machines to have access to the external network and vice-versa, follow this guide to setup network bridge on CentOS 7 / RHEL 7. Sometimes you may need to setup network bridge adapter in Linux particularly during the configuration of KVM (Kernel-based Virtual Machine), and, also while setting up Linux containers.