×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Redistriubte BGP into OSPF via Route-map

Answered Question
Nov 21st, 2011
User Badges:

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

Correct Answer by thotsaphon about 5 years 9 months ago

Hello,

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



HTH,

Toshi

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
thotsaphon Mon, 11/21/2011 - 06:45
User Badges:
  • Gold, 750 points or more

Hello,

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



HTH,

Toshi

mkmead Mon, 11/21/2011 - 06:58
User Badges:

Thank you for confirming this for me!

Actions

This Discussion