cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1341
Views
5
Helpful
2
Replies

filtering default route in ospf

sachin30720041
Level 1
Level 1

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

 

 

 

2 Replies 2

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.

Harold Ritter
Spotlight
Spotlight

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,

 

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)