
You need to specify VLAN ID for a portgroup and then assign that VM's NIC to that portgroup so it can communicate through the VLAN.
Click on your host>Configuration>Networking>Properties of vSwitch> Select VM Network portgroup>Edit>General tab> Specify the VLAN ID.
And then go to your machine>Edit settings>Network adapter>Select particular portgroup from drop down which corresponds to that VM's IP.
Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/