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

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 > NSX Edges.
  3. Double-click an NSX Edge.
  4. Click Manage > Routing > Route Redistribution.
  5. Next to Route Redistribution Status, click Edit.
  6. Select the protocols for which you want to enable route redistribution and click OK.
  7. Add an IP prefix.
    Entries in the IP Prefix list are processed sequentially.
    1. In IP Prefixes, click Add.
    2. Enter 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 a minimum prefix length to be matched and IP prefix LE as a maximum prefix length to be matched.
      You can use these two options individually or in conjunction. Values of 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 Add or OK.
  8. Specify a redistribution criteria for the IP prefix.
    1. In Route Redistribution Table, click Add.
    2. In Prefix Name, select the IP prefix that you added earlier.
    3. In Learner Protocol, select the protocol that has to learn routes from other protocols.
    4. In Allow Learning From, select the protocols from which routes must be learned.
    5. In Action, select Permit for exact subnet to redistribute, or select Deny.
    6. Click Add or OK.
  9. Click Publish Changes.