How to create a static route
Overview¤
Static routing allows you to configure your Edge Services Gateway (ESG) with knowledge of other networks which are not directly connected to it. It is particularly useful if you need to:
- route between virtual data centres (VDCs) in the same virtual organisation (vOrg), or
- route traffic to vApp networks.
Static routing is the only option on ESG; dynamic routing protocols cannot be used.
For example, you may have a vApp network 192.168.8.0/24
routed to a VDC network called Front end network
. You could create a static route to enable traffic to get to the outside IP of the vApp edge at 192.168.4.33
(a NAT will exist there).
Create a static route¤
To create a static route:
-
In the VMware Cloud Director Virtual Datacenters dashboard, select the VDC that contains the ESG that requires the static route.
-
In the left navigation panel, click Edges.
-
Select the ESG for configuration, and click Services.
-
Select the Routing tab then the Static Routes tab.
-
Click the + button.
-
In the Add Static Route dialog box, fill in the details of the network range, next hop (edge IP) and select the network interface to which you want to apply the static route.
-
To finish, click Keep then Save changes.
-
Repeat the steps for the second VDC.
Next steps¤
In this article you have learned how to create a static route. For other ESG configuration tasks, see: