Each of routing protocols OSPF and BGP may be enabled independently and the prior model of allowing only one routing protocol to be enabled on the system has been removed with this release. This release also allows the possibility of redistributing OSPF into BGP or BGP into OSPF (or both simultaneously), along with other possible route sources like prefixes learnt over the overlay, connected routes, static routes, etc.
The redistribution behavior is standardized along more traditional lines (similar to that in other routing vendors). For example, if there is more than one route available for the same prefix, then only the best route for that prefix in the system RIB will be redistributed to the destination protocol if the configuration in the destination protocol allows redistribution for that route type.
As an example, consider the redistribution of the prefix 192.168.1.0/24 into BGP. Let us say routes to the prefix 192.168.1.0/24 are locally available, learned from OSPF and separately learned as an Overlay prefix. Let's further assume that between the OFC flow ordering for the prefix, and route metrics, and route preference the OSPF route ranks above (is better than) the learned overlay route for that same prefix. Then, the OSPF route will be redistributed into BGP if OSPF redistribution has been turned on in BGP. Note that since the overlay learned prefix is not the best route for that prefix in the system RIB, it will not be redistributed into BGP even if the redistribution of overlay prefixes has been turned on in BGP.
In cases like the above, in order to facilitate the redistribution of the best route for a prefix into a given destination protocol, the user can configure redistribution for the specific route type that is the best route in the system.
- The OE1 redistribution metric is calculated by taking the original route metric and adding the transit metric. The transit metric is 0 if the route is learned from a directly connected Edge. The transit metric is 42 if the route is learned via a Gateway or a Hub Edge.
- The OE2 redistribution metric is calculated by taking the original route metric and adding the non-preferred metric constant, where the non-preferred metric constant is 8388607. This is why you would observe a very high metric value for an OE2 route type on Edge peers.
See Enable OSPF and Configure BGP from Edge to Underlay Neighbors for more information.