I have a requirement to assign different VM guest machines in HyperV with different VLAN IDs to communicate with different VLANs in external network securely.
I have only one physical Nic available for the VM traffic. The other two being used for management and storage . One way as I see is to assign the VMs(having their individual VLAn IDs assigned ) to the virtual switch( having no VLAN ID assigned ) bound to the physical Nic (having no VLAN ID). The Physical NIC is connected to the external switch port where trunk is enabled.
Instead of of the giving each of the VMs the VLAN ID , seperate Virtal switches can be created and assigned the VLAN IDs. This will not require VLAN ID assignment individually to each VMs. But the issue is, Hyper-V does not allow to assign more than one virtual switch to one physical NIC. Is there a way to assign multiple virtual switch to one hyper-V host physical Nic? Can Win 2012 Hyper-V allow such configuration?
I would like to avoid assigning VLAN IDs individually to the VMS. Can anyone help here with any config?