Based on the type
of the vApp network, you can configure various network settings, such as DNS,
static IP pools, and firewalls. If you no longer need a vApp network, you can
remove it.
Prerequisites
Verify that you are connected
to a
vCloud
Director
server.
Procedure
-
Retrieve the vApp for
which you want to modify vApp networks.
$myVApp = Get-CIVApp -Name 'MyVApp'
-
Modify the settings for
DNS and static IP pool for the vApp network named
MyVAppNetwork.
Get-CIVAppNetwork -VApp $myVApp -Name 'MyVAppNetwork' | Set-CIVAppNetwork -PrimaryDns 10.17.0.94 -SecondaryDns 10.17.0.95 -DnsSuffix 'my.domain.com' -StaticIPPool "10.151.168.1 - 10.151.169.240"
- (Optional)
Remove
MyVAppNetwork.
$myVApp | Get-CIVAppNetwork -Name 'MyVAppNetwork' | Remove-CIVAppNetwork
- (Optional)
Remove all isolated vApp
networks for the vApp named
MyVapp.
$myVApp | Get-CIVAppNetwork -ConnectionType Isolated | Remove-CIVAppNetwork
-
Retrieve the
organization vDC network named
MyOrgVdcNetwork1.
$myOrgVdcNetwork1 = Get-OrgVdcNetwork -Name 'MyOrgVdcNetwork1'
-
Retrieve the
organization vDC network named
MyOrgVdcNetwork2.
$myOrVdcgNetwork2 = Get-OrgVdcNetwork -Name 'MyOrgVdcNetwork2'
-
Redirect all vApp
networks that connect to
MyOrgVdcNetwork1 to
connect to
MyOrgVdcNetwork2.
Get-CIVAppNetwork -ParentOrgVdcNetwork $myOrgVdcNetwork1 | Set-CIVAppNetwork -ParentOrgVdcNetwork $myOrgVdcNetwork2 -NatEnabled $false -FirewallEnabled $false
The operation
disables the firewall and NAT routing for all vApp networks that are connected
to
MyOrgVdcNetwork1.