<interface>

Specifies a virtual Ethernet device for a virtual server.

Text content

None.

Selected attributes

type = direct | bridge | network | hostdev
Specifies the type of connection:
direct
Creates a MacVTap interface.
bridge
Attaches to a bridge, as for example implemented by a virtual switch.
network
Attaches to a virtual network as configured with a network configuration-XML.
hostdev
Configures a VFIO PCI pass-through network device.
trustGuestRxFilters = no | yes
Only valid if type = direct.

Set this attribute to yes to allow the virtual server to change its MAC address. As a consequence, the virtual server can join multicast groups. The ability to join multicast groups is a prerequisite for the IPv6 Neighbor Discovery Protocol (NDP).

Setting trustGuestRxFilters to yes has security implications, because it allows the virtual server to change its MAC address and thus to receive all frames delivered to this address.

Usage

Parent elements

<devices>

Child elements

Example

<interface type="direct">
    <source dev="bond0" mode="bridge"/>
    <model type="virtio"/>
</interface>