<source> as child element of <interface>
Specifies the host view of a network interface configuration.
Text content
None.Selected attributes
- dev
- Specifies the network interface.
- mode=bridge | vepa
- Optional and mutually exclusive with
network; indicates whether packets are delivered to the target device or to the external
bridge.
- bridge
- If packets have a destination on the host from which they originated, they are delivered directly to the target. For direct delivery, both origin and destination devices need to be in bridge mode. If either the origin or destination is in vepa mode, a VEPA-capable bridge is required.
- vepa
- All packets are sent to the external bridge. If packets have a destination on the host from which they originated, the VEPA-capable bridge will return the packets to the host.
- network
- Optional and mutually exclusive with mode; specifies the name of a virtual network.
Usage
Parent elements
<interface>Child elements
<address> as child element of <interface>Example
<interface type="direct">
<source dev="bond0" mode="bridge"/>
<model type="virtio"/>
</interface>