I have the next configuration:
VM1 - - - >
VM2 - - - > VM0 Gateway
VM3 - - - >
By now all vms are in the same PortGroup but I want to isolate each mv in one VLAN so I created one PortGroup with one vlan for each mv, like this:
PortGroupA VLAN 10 for Gateway(pfsense)
PortGroupB VLAN 20 for VM1
PortGroupC VLAN 30 for VM2
PortGroupD VLAN 40 for VM3
The problem is this, I want to connect each vm to the gateway but I can't, I was reading and it's not possible to assign two or more VLAN to one PortGroup, I tried putting VLAN 10 in 4095 but nothing, of course if I put PortGroupA and PortGroupB in the same VLAN works fine. The other solutions I was thinking is to put one NIC in the gateway for each PortGroup, but I think it's a wrong option. Thanks!
edit: I'm reading about vlan in esxi, and there is somebody saying that, we only use vlan when connect to physical switch, is right? in this case, I have my infrastructure completely virtualise, so, there the best solution is using subnets? nothing more?