To provide a vApp network with DHCP, firewall, NAT, and VPN services, you must create it as an NAT routed vApp network.

Verify that you are connected to a vCloud Director server.

1

Retrieve the vApp for which you want to create a vApp network.

$myVApp = Get-CIVapp -Name 'MyVApp'
2

Retrieve the organization network to which you want to connect the vApp network.

$myOrgNetwork = Get-OrgNetwork -Name 'MyOrgNetwork'
3

Create the new vApp network with a gateway and network mask, defined pool of static IP addresses, and a disabled firewall.

New-CIVAppNetwork -VApp $myVApp -ParentOrgNetwork $myOrgNetwork -Name 'MyVAppInternalNetwork' -Routed -Gateway '192.168.2.1' -Netmask '255.255.255.0' -DisableFirewall -StaticIPPool "192.168.2.100 - 192.168.2.199"

If you do not run New-CIVAppNetwork with the DisableFirewall parameter, the new vApp network has an enabled firewall by default.