By default, routers share routes with other routers running the same protocol. In a multi-protocol environment, you must configure route redistribution for cross-protocol route sharing.

About this task

You can exclude an interface from route redistribution by adding a deny criterion for its network. From NSX 6.2, the HA (management) interface of a logical (distributed) router is automatically excluded from route redistribution.

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 Routing and then click Route Redistribution.
  5. Click Edit next to Route Redistribution Status.
  6. Select the protocols for which you enable route redistribution and click OK.
  7. Add an IP prefix.

    Entries in the IP Prefix list are processed sequentially.

    1. Click the Add icon in IP Prefixes.
    2. Type a name and IP address of the network.

      The IP prefix entered is exactly matched, except if you include less-than-or-equal-to (LE) or greater-than-or-equal-to (GE) modifiers.

    3. LE and GE together specify a range of prefix lengths that the rule must match. You can add IP prefix GE as minimum prefix length to be matched and IP prefix LE as maximum prefix length to be matched.

      You can use these two options individually or in conjunction. Value for LE and GE cannot be zero or greater than 32. GE value cannot be greater than LE value. For example,

      • If you provide a prefix as 10.0.0.0/16 and LE = 28, then the redistribution rule matches all prefixes ranging from 10.0.0.0/16 to 10.0.0.0/28. It means that the rule matches all prefix lengths from 16 to 28. Prefix 10.0.2.0/24 is matched.

      • If you provide a prefix as 10.0.0.0/16 and GE = 24, then the redistribution rule matches all prefixes ranging from 10.0.0.0/24 to 10.0.0.0/32. Prefix 10.0.0.16/28 is matched.

      • If you provide GE = 24 and LE = 28, then the redistribution rule matches all prefixes ranging from 10.0.0.0/24 to 10.0.0.0/28. Prefix 10.0.0.32/27 is matched.

    4. Click OK.
  8. Specify redistribution criteria for the IP prefix.
    1. Click the Add icon in Route Redistribution table.
    2. In Prefix Name, select the IP prefix added earlier.
    3. In Learner Protocol, select the protocol that is to learn routes from other protocols.
    4. In Allow Learning from, select the protocols from which routes should be learned.
    5. In Action, select Permit for exact subnet to redistribute, or select Deny.
    6. Click OK.
  9. Click Publish Changes.