You can configure the static and dynamic routing on your NSX Data Center for vSphere edge gateways.
To enable dynamic routing, you configure an advanced edge gateway using the Border Gateway Protocol (BGP) or the Open Shortest Path First (OSPF) protocol.
For detailed information about the routing capabilities that NSX Data Center for vSphere provides, see the NSX Data Center for vSphere documentation.
You can specify static and dynamic routing for each advanced edge gateway. The dynamic routing capability provides the necessary forwarding information between Layer 2 broadcast domains, which allows you to decrease Layer 2 broadcast domains and improve network efficiency and scale. NSX Data Center for vSphere extends this intelligence to the locations of the workloads for East-West routing. This capability allows more direct virtual machine to virtual machine communication without the added cost or time needed to extend hops.
Specify Default Routing Configurations for the NSX Data Center for vSphere Edge Gateway in the VMware Cloud Director Tenant Portal
You can specify the default settings for static routing and dynamic routing for an edge gateway in VMware Cloud Director.
Procedure
What to do next
Add static routes. See Add a Static Route To an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal.
Configure route redistribution. See Configure Route Redistributions on an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal.
Add a Static Route To an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal
You can add a static route for a destination subnet or host in VMware Cloud Director.
If ECMP is enabled in the default routing configuration, you can specify multiple next hops in the static routes. See Specify Default Routing Configurations for the NSX Data Center for vSphere Edge Gateway in the VMware Cloud Director Tenant Portal for steps on enabling ECMP.
Prerequisites
Procedure
- Open Edge Gateway Services.
- From the primary left navigation panel, select Networking and from the page top navigation bar, select Edge Gateways.
- Select the edge gateway that you want to edit, and click Services.
- Navigate to .
- Click the Create () button.
- Configure the following options for the static route:
Option Description Network Type the network in CIDR notation. Next Hop Type the IP address of the next hop. The next hop IP address must exist in a subnet associated with one of the edge gateway interfaces.
If ECMP is enabled, you can type multiple next hops.
MTU Edit the maximum transmission value for data packets. The MTU value cannot be higher than the MTU value set on the selected edge gateway interface. You can see the MTU set on the edge gateway interface by default on the Routing Configuration screen.
Interface Optionally, select the edge gateway interface on which you want to add a static route. By default, the interface is selected that matches the next hop address. Description Optionally, type a description for the static route. - Click Save changes.
What to do next
Configure a NAT rule for the static route. See Add an SNAT or a DNAT Rule To an NSX Data Center for vSphere Edge Gateway in the VMware Cloud Director Tenant Portal.
Add a firewall rule to allow traffic to traverse the static route. See Add an NSX Data Center for vSphere Edge Gateway Firewall Rule in the VMware Cloud Director Tenant Portal.
Configure OSPF On an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal
You can configure the Open Shortest Path First (OSPF) routing protocol for the dynamic routing capabilities of an NSX Data Center for vSphere edge gateway. A common application of OSPF on an edge gateway in a VMware Cloud Director environment is to exchange routing information between edge gateways in VMware Cloud Director.
The NSX edge gateway supports OSPF, an interior gateway protocol that routes IP packets only within a single routing domain. As described in the NSX Administration documentation, configuring OSPF on an NSX edge gateway enables the edge gateway to learn and advertise routes. The edge gateway uses OSPF to gather link state information from available edge gateways and construct a topology map of the network. The topology determines the routing table presented to the Internet layer, which makes routing decisions based on the destination IP address found in IP packets.
As a result, OSPF routing policies provide a dynamic process of traffic load balancing between routes of equal cost. An OSPF network is divided into routing areas to optimize traffic flow and limit the size of routing tables. An area is a logical collection of OSPF networks, routers, and links that have the same area identification. Areas are identified by an Area ID.
Prerequisites
Procedure
What to do next
Configure OSPF on the other edge gateways that you want to exchange routing information with.
Add a firewall rule that allows traffic between the OSPF-enabled edge gateways. See Add an NSX Data Center for vSphere Edge Gateway Firewall Rule in the VMware Cloud Director Tenant Portal.
Make sure that the route redistribution and firewall configuration allow the correct routes to be advertised. See Configure Route Redistributions on an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal.
Configure BGP On an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal
You can configure Border Gateway Protocol (BGP) for the dynamic routing capabilities of an NSX Data Center for vSphere edge gateway in VMware Cloud Director.
As described in the NSX Administration Guide, BGP makes core routing decisions by using a table of IP networks or prefixes, which designate network reachability among multiple autonomous systems. In the networking field, the term BGP speaker refers to a networking device that is running BGP. Two BGP speakers establish a connection before any routing information is exchanged. The term BGP neighbor refers to a BGP speaker that has established such a connection. After establishing the connection, the devices exchange routes and synchronize their tables. Each device sends keep alive messages to keep this relationship alive.
Procedure
What to do next
Configure BGP on the other edge gateways that you want to exchange routing information with.
Add a firewall rule that allows traffic to and from the BGP-configured edge gateways. See Add an NSX Data Center for vSphere Edge Gateway Firewall Rule in the VMware Cloud Director Tenant Portal for information.
Configure Route Redistributions on an NSX Data Center for vSphere Edge Gateway Using the VMware Cloud Director Tenant Portal
By default the router only shares routes with other routers running the same protocol. When you have configured a multi-protocol VMware Cloud Director environment, you must configure route redistribution to have cross-protocol route sharing. You can configure route redistribution for an NSX Data Center for vSphere edge gateway.