5.5

Table Of Contents
n
The Configuration of the vApp network in vApp2 has a RouterInfo element whose ExternalIp value is
192.168.0.101.
n
Both vApp networks have the same ParentNetwork, an organization VDC network whose network
specification in CIDR notation is 192.168.0.0/24.
You can enable static routing between these two vApp networks by inserting a StaticRoutingService
element in the Features of each vApp network Configuration. This excerpt from the NetworkConfigSection
of vApp1 shows the network's Configuration and Features elements..
<!-- Static route from vApp network 1 to vApp network 2 -->
<Configuration>
...
<Features>
<StaticRoutingService>
<IsEnabled>true</IsEnabled>
<StaticRoute>
<Name>TovAppNet2</Name>
<Network>192.168.2.0/24</Network>
<NextHopIp>192.168.0.101</NextHopIp>
<Interface>External</Interface>
</StaticRoute>
</StaticRoutingService>
</Features>
...
</Configuration>
This is a similar excerpt from the NetworkConfigSection of vApp2.
<!-- Static route from vApp network 2 to vApp network 1 -->
<Configuration>
...
<Features>
<StaticRoutingService>
<IsEnabled>true</IsEnabled>
<StaticRoute>
<Name>TovAppNet1</Name>
<Network>192.168.1.0/24</Network>
<NextHopIp>192.168.0.100</NextHopIp>
<Interface>External</Interface>
</StaticRoute>
</StaticRoutingService>
</Features>
...
</Configuration>
Update the NetworkConnectionSection of a Virtual Machine
Whenever you create a vApp network or update its configuration, you might also need to update the
NetworkConnectionSection elements of the virtual machines in the vApp.
Prerequisites
Verify that you are logged in to the vCloud API as an administrator or vApp Author.
Procedure
1 Retrieve the virtual machine's NetworkConnectionSection.
vCloud API Programming Guide
134 VMware, Inc.