You can add a static route for a destination subnet or host.
- Log in to the vSphere Web Client.
- Click Networking & Security and then click NSX Edges.
- Double-click an NSX Edge.
- Click the Manage tab and then click the Routing tab.
- Select Static Routes from the left panel.
- Click the Add () icon.
- Type the Network in CIDR notation.
- Type the IP address of the Next Hop.
The router must be able to directly reach the next hop.
If ECMP is enabled, you can type multiple next hops.
- Select the Interface on which you want to add a static route.
- For MTU, edit the maximum transmission value for the data packets if required.
The MTU cannot be higher than the MTU set on the NSX Edge interface.
- If prompted, type the Admin Distance.
Choose a value between 1 and 255. The admin distance is used to choose which route to use when there are multiple routes for a given network. The lower the admin distance, the higher the preference for the route.
Table 1. Default Admin Distances
Default admin distance
An administrative distance of 255 causes the static route to be excluded from the routing table (RIB) and the data plane, so the route is not used.
- (Optional) : Type the Locale ID.
By default, routes have the same locale ID as the NSX Manager. Specifying a locale ID here will associate the route with this locale ID. These routes will be sent only to hosts that have a matching locale ID. See Cross-vCenter NSX Topologies for more information.
- (Optional) : Type a Description for the static route.
- Click OK.