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.
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.
Verify that a downlink port is configured. See Add Downlink Ports for the Tier-1 Logical Router.
- From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
- Select Routing from the navigation panel.
- Select the tier-1 logical router.
- Click the Routing tab and select Static Routes from the drop-down menu.
- Click Add.
- Enter a network address in the CIDR format.
For example, 10.10.10.0/16.
- 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.
- Click Save.
The newly created static route network address appears in the row.
- From the tier-1 logical router, select Routing > Route Advertisement.
- Click Edit and select Advertise Static Routes.
- Click Save.
The static route is propagated across the NSX-T overlay.