You can add a static route for a destination subnet or host.

Procedure

  1. Log in to the vSphere Web Client.
  2. Click Networking & Security and then click NSX Edges.
  3. Double-click an NSX Edge.
  4. Click the Manage tab and then click the Routing tab.
  5. Select Static Routes from the left panel.
  6. Click the Add (Add icon) icon.
  7. Type the Network in CIDR notation.
  8. 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.

  9. Select the Interface on which you want to add a static route.
  10. 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.

  11. 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

    Route Source

    Default admin distance

    Connected

    0

    Static

    1

    External BGP

    20

    OSPF Intra-Area

    30

    OSPF Inter-Area

    110

    Internal BGP

    200

    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.

  12. (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.

  13. (Optional) : Type a Description for the static route.
  14. Click OK.