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

About this task

For example, in the following diagram, the tier-1 A logical router has a downlink port to an NSX-T 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-T 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

Prerequisites

Verify that a downlink port is configured. See Add Downlink Ports for the Tier-1 Logical Router.

Procedure

  1. From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
  2. Select Routing from the navigation panel.
  3. Select the tier-1 logical router.
  4. Click the Routing tab and select Static Route from the drop-down menu.
  5. Select Add.
  6. Enter a network address in the CIDR format.

    For example, 10.10.10.0/16.

  7. Click Insert Row to add a next-hop IP address.

    For example, 172.16.40.10.

  8. Click Save.

    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 Static Routes.
  11. Click Save.

    The static route is propagated across the NSX-T overlay.