You can add static routes between two vApp networks that are routed to the same organization virtual data center network. Static routes allow traffic between the networks.
You cannot add static routes to a fenced vApp or between overlapping networks. After you add a static route to a vApp network, configure the network firewall rules to allow traffic on the static route. For vApps with static routes, select to use assigned IP addresses until the vApp or associated networks are deleted.
Static routes function only when the vApps containing the routes are running. If you change the parent network of a vApp, delete a vApp, or delete a vApp network, and the vApp includes static routes, those routes cannot function and you must remove them manually.
- Two vApp networks are routed to the same organization virtual data center network.
- The vApp networks are in vApps that were started at least once.
- Static routing is enabled on both vApp networks.
- On the Virtual Datacenters dashboard screen, click the card of the virtual data center you want to explore, and select vApps from the left panel.
- Click to view the vApps in a card view.
- In the card of the selected virtual appliance, click Details.
- On the Networks tab, click a network to view the network details.
- On the Routing tab, under Static Routing click Add.
The allocated IP addresses are displayed.
- Enter a name of the static route.
- Enter the network address in CIDR format.
The network address is for the vApp network to which to add a static route.
- Enter the next hop IP address.
The next hop IP address is the external IP address of that vApp network's router.
- Click Save.
- Repeat the same procedure for the second vApp network.
Example: Static Routing Example
vApp Network 1 and vApp Network 2 are both routed to Org Network Shared. You can create a static route on each vApp network to allow traffic between the networks. You can use information about the vApp networks to create the static routes.
|Network Name||Network Specification||Router External IP Address|
|vApp Network 1||192.168.1.0/24||192.168.0.100|
|vApp Network 2||192.168.2.0/24||192.168.0.101|
|Org Network Shared||192.168.0.0/24||NA|
On vApp Network 1, create a static route to vApp Network 2. On vApp Network 2, create a static route to vApp Network 1.
|vApp Network||Route Name||Network||Next Hop IP Address|
|vApp Network 1||tovapp2||192.168.2.0/24||192.168.0.101|
|vApp Network 2||tovapp1||192.168.1.0/24||192.168.0.100|