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
- Log in to the vSphere Web Client.
- Click .
- Double-click an NSX Edge.
- Click .
- Next to Route Redistribution Status, click Edit.
- Select the protocols for which you want to enable route redistribution and click OK.
- Add an IP prefix.
Entries in the IP Prefix list are processed sequentially.
- In IP Prefixes, click Add.
- 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.
- 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.
- Click Add or OK.
- Specify a redistribution criteria for the IP prefix.
- In Route Redistribution Table, click Add.
- In Prefix Name, select the IP prefix that you added earlier.
- In Learner Protocol, select the protocol that has to learn routes from other protocols.
- In Allow Learning From, select the protocols from which routes must be learned.
- In Action, select Permit for exact subnet to redistribute, or select Deny.
- Click Add or OK.
- Click Publish Changes.