11-21-2011 06:41 AM - edited 03-04-2019 02:21 PM
Our current router is setup to redistribute our BGP routes into OSPF using the following code:
router ospf 60
log-adjacency-changes
redistribute bgp 65199 metric 1500 metric-type 1 subnets
I want to filter down the routes so only a set of specific routes is redistributed.. we have done this in the past with EIGRP by doing a route-map / prefix-list to manage the routes passed into EIGRP.
My question is I can replicate the metric and the metric-type in the route-map by doing the following:
route-map bgp-to-ospf permit 10
match ip address prefix-list bgp-to-ospf
set metric 1500
set metric-type type-1
router ospf 60
redistribute bgp 65199 route-map bgp-to-ospf
Do I need to be concerned witht the "subnets" command in this design? What I understand "Subnets" =
When redistributing routes into OSPF, only routes that are not subnetted are redistributed if the subnets keyword is not specified. I suspect I need to add it! So my final code should look like this.. is this correct?
route-map bgp-to-ospf permit 10
match ip address prefix-list bgp-to-ospf
set metric 1500
set metric-type type-1
router ospf 60
redistribute bgp 65199 route-map bgp-to-ospf SUBNET
Solved! Go to Solution.
11-21-2011 06:45 AM
Hello,
Your concern is correct. Otherwise, you will get only major networks.
HTH,
Toshi
11-21-2011 06:45 AM
Hello,
Your concern is correct. Otherwise, you will get only major networks.
HTH,
Toshi
11-21-2011 06:58 AM
Thank you for confirming this for me!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: