Bridged networking is also referred to as physical device sharing and it dedicates a physical device to a virtual machine.
Method 1: Creating Bridge Network using Virtual Machine Manager.
- Open Virtual Machine Manager,
- Go to Edit > Connection Details > Network Interfaces
- Configure a new network interface by clicking the + at the bottom of the window.
- Make sure interface type is set to “bridge”
- Click Forward button, on next window, set a name of the bridge, start mode and whether to activate immediately.The following are start modes can be used for creating bridge network:
none – This deactivates the bridge created
hotplug – This will activate the bridge even if the guest virtual machine is running
onboot -With this, the bridge is activated on the next guest virtual machine reboot
- Choose the interface you are bridging and finish setting up.
Method 2: Create a bridge based on an interface using the command line ( Universal):
For example, to create a bridge name br10 based on eno1 interface, we would enter:
Method 3: Create a bridge by editing network script (CentOS / RHEL):
Below script will create a bridge called br10,
Enter contents below:
The configuration of eno1 interface that i’m bridging to will be:
If your network uses MAC filtering, you can add the mac address of interface allowed to access internet by MAC address filter.Replace XX:XX:XX:XX:XX:XX with correct mac address.
Restart your network daemon.
Since NetworkManager does not support bridging, it has to be disabled in order to use network scripts located in /etc/sysconfig/network-scripts/ directory.If you don’t want to completely disable NetworkManager, add “NM_CONTROLLED=no” to the network script used for bridging link.
If you would like to totally disable NetworkManager, do:
Method 4: Using Nmcli tool ( Work on Debian 8, CentOS 7.X,RHEL 7.x)
Stop and restart both Network manager and Networking:
Method 5: Editing Network Script file ( All Ubuntu systems, Debian derivatives like Kali Linux, Linux Mint, Xubuntu, Kubuntu e.t.c.)
Configure Bridging interface:
Disable all lines on eth0 interface section to look something like below:
You should now have a working Bridge network interface added.
Deleting a bridge interface
If you no longer need a bridge, you can easily delete it by:
First removing network interfaces from the bridge:
Then bring it down and delete:
How to configure KVM Bridging interface in Linux
How to Create and Configure Bridge Networking For KVM in Linux
Create, configure and make KVM Network bridge functional
KVM and Bridging on CentOS Linux