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” –
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 –
Next , now we remove the selective redistribution from R4 and allow all the 172 networks being advertised as below
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 –
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.
Continue Reading:
OSPF External Route Summarization not happening
OSPF LSA Types: The Ultimate Guide
ABOUT THE AUTHOR
I am here to share my knowledge and experience in the field of networking with the goal being – “The more you share, the more you learn.”
I am a biotechnologist by qualification and a Network Enthusiast by interest. I developed interest in networking being in the company of a passionate Network Professional, my husband.
I am a strong believer of the fact that “learning is a constant process of discovering yourself.”
– Rashmi Bhardwaj (Author/Editor)