VM's on True-NAS Core - NIC in VLAN

I'd like to attach a VM wich is running on True-NAS Core to a VLAN on my host's LAG.

Could not find the solution online, so i did try and error until i came to the following Solution:

If your NAS needs an IP-Adress in the VLAN you going to use for your VM, add it via a VLAN Network Interface in NETWORK --> INTERFACES.

For your VM create a VIRTIO-NIC that is connected to whatever host NIC (physical or LAG) is carrying the tagged Packets. In your Guest-OS configure the VIRTIO-NIC for using your desired VLAN-Tag.

Done. 

This article was updated on 27 Juli 2023