...
- physical host interface,
- to a TAP interface connected to a virtual bridge on the host, or
- (starting with planned for Charon-PAR version 3.0.9) a MACVTAP interface linked to a host NIC via an implicitly created TAP interface.
...
Please note: at the time of writing, this feature is not yet available for nftables.
Div | ||
---|---|---|
| ||
Supplemental Information: MACVTAP Interfaces (planned for version 3.0.9
...
)
In some cloud environments, interface settings on the Linux level are not passed properly to the NIC on the cloud level. This can cause problems with network connectivity and, in particular, with network performance. The problem can be solved by using a virtual bridge between host and guest, and by configuring routing or NAT to allow guest communication with other systems. However, such configurations are often complex due to the fact that only the cloud-assigned MAC and IP addresses can be used. On a virtual bridge to which host and guest are attached, this condition cannot be met.
MACVTAP interfaces provide an alternative solution - they are linked to a host NIC and are TAP based. However, when used in passthrough mode, they can use the same MAC and IP address as assigned by the cloud provider.
Basic configuration of a MACVTAP interface on the Linux host system:
Activate the NIC that is dedicated to the emulator:
Remove IPv4 and IPv6 addresses from the NIC:
Create a MACVTAP interface linked to the host NIC:
Configure the correct MTU on the new interface:
Activate the new interface:
Set the correct permissions on the underlying TAP interface:
|
...