You can configure a static route on a tier-1 logical router to provide connectivity from NSX to a set of networks that are accessible through a virtual router.

For example, in the following diagram, the tier-1 A logical router has a downlink port to an NSX logical switch. This downlink port (172.16.40.1) serves the default gateway for the virtual router VM. The virtual router VM and tier-1 A are connected through the same NSX logical switch. The tier-1 logical router has a static route 10.10.0.0/16 that summarizes the networks available through the virtual router. Tier-1 A then has route advertisement configured to advertise the static route to tier-1 B.

Figure 1. Tier-1 Logical Router Static Route Topology
Static route topology for the tier-1 logical router

Recursive static routes are supported.

Prerequisites

Verify that a downlink port is configured. See Add a Downlink Port on a Tier-1 Logical Router in Manager Mode.

Procedure

  1. With admin privileges, log in to NSX Manager.
  2. Select Networking > Tier-1 Logical Routers.
  3. Click the name of a tier-1 router.
  4. Click the Routing tab and select Static Routes from the drop-down menu.
  5. Click Add.
  6. Enter a network address in the CIDR format.
    Static route based on IPv6 is supported. IPv6 prefixes can only have an IPv6 next hop.
    For example, 10.10.10.0/16 or an IPv6 address.
  7. Click Add to add a next-hop IP address.

    For example, 172.16.40.10. You can also specify a null route by clicking the pencil icon and selecting NULL from the drop-down. To add another next hop addresses, click Add again.

  8. Click Add at the bottom of the dialog box.
    The newly created static route network address appears in the row.
  9. From the tier-1 logical router, select Routing > Route Advertisement.
  10. Click Edit and select Advertise All Static Routes.
  11. Click Save.
    The static route is propagated across the NSX overlay.