Skip to content

Commit 5574518

Browse files
committed
Fix receiving multicast traffic
By default libvirt does not allow traffic destined for other MAC addresses to reach VMs when using a macvtap interface. This prevents multicast from working. This change fixes the issue by setting trustGuestRxFilters to yes for macvtap interfaces.
1 parent 1c0f94f commit 5574518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endfor %}
4848
{% for interface in interfaces %}
4949
{% if interface.type is defined and interface.type == 'direct' %}
50-
<interface type='direct'>
50+
<interface type='direct' trustGuestRxFilters='yes'>
5151
<source dev='{{ interface.source.dev }}' mode='{{ interface.source.mode | default('vepa') }}'/>
5252
{% elif interface.type is defined and interface.type == 'bridge' %}
5353
<interface type='bridge'>

0 commit comments

Comments
 (0)