Users Guide

NOTE: With the redistribute static command in the running configuration, if a static route is configured which is
also learned through OSPF, the static route is installed in the routing table even if the static route preference is higher than
OSPF.
Enter the routes that redistribute into the OSPFv2 process in ROUTER-OSPF mode.
redistribute {bgp as-number| connected | static} [route-map map-name]
bgp | connected | staticEnter a keyword to redistribute those routes.
route-map map-nameEnter the name of a configured route map.
Configure redistribute routes
OS10(conf-router-ospf-10)# redistribute bgp 4 route-map aloha
OS10(conf-router-ospf-10)# redistribute connected route-map aloha
OS10(conf-router-ospf-10)# redistribute static route-map aloha
Before Release 10.5.2.0, the redistribute command redistributed active and inactive route paths. By default, from Release
10.5.2.0 and beyond, this command redistributes only active route paths. If you have configured route redistribution, when you
upgrade to Release 10.5.2.0, the inactive route paths are no longer redistributed.
To redistribute both active and inactive routes, you must configure a route map with the inactive-path-additive rule and
apply the route map to the redistribute command.
Consider a case where two route paths, one learned from the OSPF peer and the other leaked from another VRF, having the
same metric and cost are present. In this case, the routing table prioritizes the local route over the leaked route. If you have
chosen to redistribute the inactive OSPF routes, OSPF removes the route learned from the peer and retains only the leaked
route.
To redistribute active and inactive IPv4/IPv6 routes from other unicast protocols into OSPF:
1. Configure a route-map to match the inactive-path-additive rule.
route-map route-map-name
match inactive-path-additive
2. Apply the route-map to the redistribute command.
redistribute {connected [route-map map-name] | imported-ospf-routes [route-map map-
name] | bgp AS-number [route-map map-name] | static [route-map map-name]}
View OSPF configuration - redistribute active routes
OS10(conf-router-ospf-10)# do show running-configuration ospf
!
router ospf 10
redistribute bgp 4 route-map aloha
redistribute connected route-map aloha
redistribute static route-map aloha
!
Redistribute active and inactive IPv4 BGP routes into OSPF
OS10# configure terminal
OS10(config)# route-map redis-inactive-routes
OS10(config-route-map)# match inactive-path-additive
OS10(config-route-map)# exit
OS10(config)# router ospf 10
OS10(config-router-ospf-10)# redistribute bgp 100 route-map redis-inactive-routes
Redistribute active and inactive IPv6 static routes into OSPF
OS10# configure terminal
OS10(config)# route-map redis-inactive-routes
OS10(config-route-map)# match inactive-path-additive
OS10(config-route-map)# exit
Layer 3
931