Configuring a MacVTap interface
Configure network interfaces, such as Ethernet interfaces, bonded interfaces, virtual LANs, through a direct MacVTap interface.
Procedure
You configure a network interface as direct MacVTap connection by using the interface element (see <interface>).
Libvirt automatically creates a MacVTap interface when you define the network device.
interface type attribute: | direct |
By default, the virtual server cannot change its assigned MAC address and, as a result, cannot join multicast groups. To enable multicasting, you need set the interface trustGuestRxFilters attribute to yes. This has security implications, because it allows the virtual server to change its MAC address and thus to receive all frames delivered to this address.
Example
- To configure bonded interface bond0:
<interface type="direct"> <source dev="bond0" mode="bridge"/> <model type="virtio"/> </interface>
- To configure virtual LAN bond0.623:
<interface type="direct"> <source dev="bond0.623" mode="bridge"/> <model type="virtio"/> </interface>