You can configure a static route on a tier-1 logical router to provide connectivity from NSX-T Data Center 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 Data Center 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 Data Center 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 a Downlink Port on a Tier-1 Logical Router.
- From your browser, log in with admin privileges to an NSX Manager at https://nsx-manager-ip-address.
- Select from the navigation panel.
- Click the name of a tier-1 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 Add at the bottom of the dialog box.
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 All Static Routes.
- Click Save.
The static route is propagated across the NSX-T Data Center overlay.