03-28-2022 04:10 PM
Hello,
R1----R2---R3---------R4
<---Area 0---><--Area 1-->
OSPF is running on all the routers.
R2 is distributing the default route.
router ospf 1
default-information originate always
The default route is getting distributed in Area 1 too. Now I want to filter out the default route at R3.
On R3:
ip prefix-list prefix1 deny 0.0.0.0/0
ip prefix-list prefix1 permit 0.0.0.0/0 le 32
router ospf 1
distribute-list prefix prefix1 out
Still, I see the default route on R4. How to filter out the default route on R3?
Thanks,
Sachin
03-28-2022 04:35 PM
For distance vector protocols (RIP, IGRP, EIGRP), this command prevents routes selected by the access list from being advertised to a neighbor. OSPF is a link-state protocol and does not advertise routes to a neighbor but advertises a link-state database. The neighbor determines the routes from the information in the link-state database. Therefore, this command has no effect when used with OSPF.
03-28-2022 04:40 PM
Hi @sachin30720041 ,
This command is only useful if applied on the ASBR. It has no effect if applied to the ABR. If you want t make sure that the default route won't make it to area 1, you can make it a stubby (or not so stubby) area.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide