How To Passthrough All VLAN To Guest Nic

baiclamp

New Member
Apr 14, 2025
1
0
1
Hello,Everyone!
I am trying to set up a guest virtual machine to deploy zeek. So I want to passthrough all vlan to the guest nic.
I had been modified my switch to allow all vlan passthrough to the pve host nic. I can use tcpdump to captured packets that belongs to other vlan.(L2 and above)
But in the guest , it seems just L2(or just boardcast) packets?
Below are my pve host configuration:
INI:
auto lo

iface lo inet loopback


iface eno1 inet manual


iface enp3s0 inet manual


auto vmbr0

iface vmbr0 inet static

        address 172.18.18.72/24

        gateway 172.18.18.254

        bridge-ports eno1

        bridge-stp off

        bridge-fd 0

        bridge-vlan-aware yes

        bridge-vids 2-4094


iface wlp4s0 inet manual


auto vmbr1

iface vmbr1 inet static

        address 172.18.19.10/24

        bridge-ports enp3s0

        bridge-stp off

        bridge-fd 0

        bridge-vlan-aware yes

        bridge-vids 2-4094

enp3s0 is the pve host phy nic that configed all vlan passthrough, vmbr1 is the linux bridge that bridging to phy nic enp3s0.
below are my guest machine configurations:

Code:
net1: virtio=BC:24:11:46:75:C2,bridge=vmbr1,firewall=1,trunks=1;19;17;18;20;254

I had been adding trunks configurations to the guset config file. but I can not using tcpdump to get all the packages.
belows are the two nic captured at one time:

PackageInfo.png

Left is guest nic , and Right is host nic.
How can i make all vlan packages passthrough to the guest nic ? thanks.