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.

facing problem in distribute-list for subnet filtering in OSPF

Unanswered Question
Apr 10th, 2012
User Badges:

Hello Friends,

I am facing problem in filtering subets between 2 OSPF neighbors by using distribute-list route-map , criteria for filtering subnets is route tag.

I have attached the config and output. Please help to share you feedback.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Mahesh Gohil Tue, 04/10/2012 - 23:18
User Badges:
  • Silver, 250 points or more

Hi Vipin,

I am not 100%sure but you can try to change one route type as external to ...may be received from

at origin end because i don't think you have option to change LSA at receiver end.

Regards # Mahesh

Vipin Kumar Tue, 04/10/2012 - 23:34
User Badges:

Thanks Mahesh for your feedback,

Yes , you are right, If I make subnets revceived from as E2, then yes E1 routes will be preferred over E2 .

But I have limitations, as this topology it bit complex and I have to keep metric and route type same ( E1) on both both ASBR's , then I have only option to fix this at remote device



Mahesh Gohil Tue, 04/10/2012 - 23:49
User Badges:
  • Silver, 250 points or more

In that case can you try below at remote end

match tag 63000

set metric-type type-2

and then clear the session.


nkarpysh Wed, 04/11/2012 - 00:49
User Badges:
  • Cisco Employee,


Please remember in OSPF distribute list can filter only routes sent from OSFP database to rouring table. Not the routes coming into OSPF DB. Thus as OSPF already received to LSAs and did SPF calculations and decided that both should go to GRT - you can either just filter one route to be completely out with ACL or prefix-list or leave both in. Metric manipualtion wont help here as route already coming from DB to GRT and decision was alredy taken.


You can think of other ways - as this seems to be a lab - I will let you find other ways for a sake of learning.



This Discussion