If you want to use multiple VLANs on a single physical interface, perhaps the easiest way would be using XNET IP Stack. As I mentioned earlier, the XNET Endpoint can OS Adapter cannot be used at the same time. You should forget about using a Windows adapter.
I believe you can combine two examples under the folder \examples\nixnet\projects\NI-XNET Ethernet\IP Stack\
- TCP Multiple VLANs - Client.vi
- TCP Proxy - Client.vi
You might need two ports (forward destination port and listen port) for each VLAN.
-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/