OSPF External Route Filtering not happening

Rashmi Bhardwaj | Blog,Config & Troubleshoot,Routing & Switching
Advertisements

There have been situations wherein we see that in OSPF external routes are not filtered on ABR by any of the routers. So we have to configure the external route Filtration on the ASBR Router only. If the Routes enter OSPF domain and traverses without being filtered at ASBR, no filter-list command can be fruitful. Filter-list will only filter Type 3 LSA and not Type 5 LSA. Only workaround would be to configure distribute list on the destination OSPF router requiring limited routes to be learnt.

Example Scenario: OSPF External Route Filtering not happening

Let’s understand the same with an example –

 

Router R1 is learning Routes from internal OSPF domain (192.168.x.x and Router Loopbacks) and External Network domain (172.16.x.x).Below snapshot is the output from “show ip route ospf”

Advertisements

OSPF EXTERNAL ROUTE SUMMARIZATION NOT HAPPENING

Now , on the ASBR Router we will redistribute only network 172.16.4.0/24 network and deny 172.16.1.0/24 , 172.16.2.0/24 , 172.15.3.0/24 from being propagated into OSPF domain.

Now that we configured selective redistribution (of 172.16.4.0/24 network only) on ASBR , lets see the output on R1 is per expectation –

OSPF EXTERNAL ROUTE FILTERING NOT HAPPENING

Next , now we remove the selective redistribution from R4 and allow all the 172 networks being advertised as below OSPF EXTERNAL ROUTE SUMMARIZATION NOT HAPPENING

Now, let’s see how the “area filter-list” command handles the Type 5 and Type 3 LSA.

Important to note that 172.16.1.0/24 up to 172.16.4.0/24 are external LSA Typ5 learnt routes while 2.2.2.0/24, 3.3.3.0/24, 4.4.4.0/24 and 192.166.23.0/24, 192.168.34.0/24 are LSA Type 3 learnt routes. Now on R2, we create Area filter list to deny all the inter-area and externally leant routes via below commands –OSPF EXTERNAL ROUTE FILTERING NOT HAPPENING

Once the filter list on R2 ABR is configured to filter routes learnt by Area 1 , the “show ip route ospf” shows that externally learnt routes are still showing in routing table of R1 while Inter-area (LSA Type 3 learnt) routes are still filtered.

OSPF EXTERNAL ROUTE FILTERING NOT HAPPENING

Continue Reading:

OSPF External Route Summarization not happening

OSPF LSA Types: The Ultimate Guide

OSPF LSA Data-Structure

ABOUT THE AUTHOR


Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart