Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

OSPF filtering specific prefix advertisements


Is it possible to stop a non-ABR from advertising out a single subnet to other routers?

i.e.: in the below diagram, can the LAN be advertised down Rtr1 path, but not Rtr2 path? Rtr1 and Rtr2 area both in area 203 and have an adjacency using network; RRA and RRB are ABRs in area 203 and area 0. There are other sites connected to RRA and RRB in area 203 that I do not want to have knowledge of if the Rtr1 WAN link was to go down.

LAN prefix1:

LAN prefix2:


I                              I

I                              I

Rtr1                        Rtr2

I                              I

I                              I

RemoteRtrA          RRB

Distribute-lists only stop prefixes being learned by the next-hop router, but it will still forward on the LSA to downstream routers who will learn the subnet.

Filter-lists are mainly for inter-area route filtering and would need to be applied across all ABRs in the same area. But if I wanted to stop a prefix being advertised intra and inter area, this doesn't work.

Rtr2 will learn both LAN prefixes from Rtr1. Is there a way to stop Rtr2 advertising out to RRB?



Hall of Fame Super Silver

Re: OSPF filtering specific prefix advertisements

Hello Phil,

as you have seen for the link state nature of OSPF you cannot perform filtering within a single OSPF area.

The router that should not receive the prefix has to be placed in a different area in order to perform prefix filtering at area border of internal routes (not possible to filter external routes)

Hope to help


Re: OSPF filtering specific prefix advertisements

Since you know the reason why..

We can look into some workarounds like:-

1.Slapping a loopback in the router to make it an ABR and do the filtering (ugly design for sure but it will work)

2.Static route to that prefix and black hole it using a null0

CreatePlease to create content