Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Redistriubte BGP into OSPF via Route-map

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

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions

Redistriubte BGP into OSPF via Route-map

Hello,

     Your concern is correct. Otherwise, you will get only major networks.

HTH,

Toshi

2 REPLIES

Redistriubte BGP into OSPF via Route-map

Hello,

     Your concern is correct. Otherwise, you will get only major networks.

HTH,

Toshi

New Member

Redistriubte BGP into OSPF via Route-map

Thank you for confirming this for me!

1533
Views
0
Helpful
2
Replies
CreatePlease to create content