Your approach to connect the 2 virtual NICs to 2 VM Networks is correct. Depending on your physical network setup you either need to create 2 vSwitches with uplinks to the different subnets or - in case you use VLANs - use one vSwitch, configure the uplink ports as IEEE 802.1Q ports and assign the appropriate VLAN-ID to each of the VM port groups.
André