Are these configuration below is possible?
I have a VM with 2 Virtual NICs adapter allocated on it. First Virtual NIC adapter is connected to VM network 1 with VLAN ID 1 on subnet 10.x.x.x, and the second Virtual NIC adapter is connected to VM Network 2 with VLAN ID 2 and subnet 172.x.x.x. Both VM Networks are on the same Virtual Switch. Now I can ping my first Virtual NIC adapter but I cannot ping the second Virtual NIC Adapter.
Your help would be greatly appreciated.
That should work if you configure it correctly. You need to use port groups and 802.1Q VLAN tagging when using multiple VLANs with a vSwitch. Make sure each port group has a VLAN ID assigned to it. Your physical switch that the NICs are connected to has to support VLAN tagging and be configured that way for it to work. Cisco switches use VLAN1 as the management VLAN so you should not use that unless you have a server that has Cisco management software on it.
Good network reads...
NIC teaming and VLAN trunking - http://blog.scottlowe.org/2006/12/04/esx-server-nic-teaming-and-vlan-trunking/
Networking Virtual Machines - http://download3.vmware.com/vmworld/2006/TAC9689-A.pdf
Networking Scenarios & Troubleshooting - http://download3.vmware.com/vmworld/2006/tac9689-b.pdf
You should create a trunk on your switch for the two ports that th nics are plugged into and then you should tagg the vlans to the trunk. I also notice that one of your vlans is VLAN ID 1. You should be careful of using ID1 because some switch vendors such as HP use VLAN 1 more switch management by default.