I have a debian OS running KVM. I've been running it with openvswitch + libvirt integration for many years.
Recently I tried to put a firewall VM onto it using only trunked ports but have not found a way for this to work?
Say I have 4 VLANs -
VLAN ID 20 - LAN
VLAN ID 30 - WIRELESS
VLAN ID 40 - IoT
VLAN ID 50 - WAN
I am able to trunk this to the VM using an ovs-network definition.
<network> <name>ovs-network</name> <uuid>......</uuid> <forward mode='bridge'/> <bridge name='ovs-br0'/> <virtualport type='openvswitch'/> <portgroup name='native' default='yes'></portgroup> <portgroup name='wan_vl50'> <vlan> <tag id='50'/> </vlan> </portgroup> <portgroup name='wlan_vl30'> <vlan> <tag id='30'/> </vlan> </portgroup> <portgroup name='iot'> <vlan> <tag id='40'/> </vlan> </portgroup> <portgroup name='eth0-Trunk'> <vlan trunk='yes'> <tag id='20'/> <tag id='30'/> <tag id='40'/> <tag id='50'/> </vlan> </portgroup> </network>VLAN20 is my native VLAN on my KVM host and this is also the management VLAN on the firewall, although since I am passing it a trunk it has a VLAN interface 20 with an IP address attached. How do I get the firewall to talk to the rest of the network?
Switch KVM Host VM
20 --> untagged bridge IP --> tagged vif 20
30 --> tagged N/A --> tagged vif 30
40 --> tagged N/A --> tagged vif 40
50 --> tagged N/A --> tagged vif 50
Kind Regards