cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1944
Views
0
Helpful
2
Replies

Redistriubte BGP into OSPF via Route-map

mkmead
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

Hello,

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

HTH,

Toshi

View solution in original post

2 Replies 2

Hello,

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

HTH,

Toshi

Thank you for confirming this for me!

Getting Started

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:

Review Cisco Networking products for a $25 gift card