6.4. Bridged Networking
6.4.1. Configuring Bridged Networking on a Red Hat Enterprise Linux 7 Host
6.4.2. Bridged Networking with Virtual Machine Manager
Procedure 6.1. Creating a bridge with virt-manager
- From the virt-manager main menu, click to open the Connection Details window.
- Click thetab.
- Click theat the bottom of the window to configure a new network interface.
- In thedrop-down menu, select , and then click to continue.
Figure 6.1. Adding a bridge
- In thefield, enter a name for the bridge, such as br0.
- Select afrom the drop-down menu. Choose from one of the following:
- none - deactivates the bridge
- onboot - activates the bridge on the next guest virtual machine reboot
- hotplug - activates the bridge even if the guest virtual machine is running
- Check thecheck box to activate the bridge immediately.
- To configure either theor , click the appropriate button. A separate window will open to specify the required settings. Make any necessary changes and click when done.
- Select the physical interface to connect to your virtual machines. If the interface is currently in use by another guest virtual machine, you will receive a warning message.
- Clickand the wizard closes, taking you back to the menu.
Figure 6.2. Adding a bridge
6.4.3. Bridged Networking with libvirt
macTableManagerattribute of a network's
'libvirt'in the host's XML configuration file:
<bridge name='br0' macTableManager='libvirt'/>This will turn off learning (flood) mode on all bridge ports, and libvirt will add or remove entries to the FDB as necessary. Along with removing the overhead of learning the proper forwarding ports for MAC addresses, this also allows the kernel to disable promiscuous mode on the physical device that connects the bridge to the network, which further reduces overhead.