cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
490
Views
0
Helpful
3
Replies

ospf config

James Hoggard
Level 1
Level 1

Hi,

 

I have come accross a config on one of our routera. Can somone help me understand what the below does

 

distribute-list prefix ospf-filter in
ip prefix-list ospf-filter seq 1 permit 0.0.0.0/0

Is the above saying do not learn any routes coming in? what is permit 0.0.0.0/0 doing?

interface FastEthernet0/0
 ip address 192.168.37.38 255.255.255.0
 speed 100
 full-duplex
!
interface FastEthernet0/1
 ip address 192.168.47.65 255.255.255.192
 duplex auto
 speed auto
!
interface ATM0/1/0
 no ip address
 shutdown
 no atm ilmi-keepalive
 dsl operating-mode auto
!
router ospf 3778
 log-adjacency-changes
 network 192.168.37.0 0.0.0.255 area 0
 network 192.168.47.64 0.0.0.63 area 84.19.47.64
 distribute-list prefix ospf-filter in
!

!
ip prefix-list ospf-filter seq 1 permit 0.0.0.0/0
logging source-interface FastEthernet0/0

3 Replies 3

Hello

this distribute-list is allowing only a default route into the route table and deny everything else.

 

res

paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello

Just adding some more information to what Mr PAUL has said.

There are 5 ways to perform OSPF Route Filtering

1. DISTRIBUTE LIST - Filters all LSAs from the Routing Table, but they stay in the OSPF Database

!!!distribute-list OUT works on both, routing table and OSPF database, but ONLY on ASBR for LSA5 and 7!!!

In Your case you are matching the exact default route with the help of prefix list and you have used it in the distribute-list.


2. FILTER LIST - Filters only LSA3, so - only on ABR, but filters from OSPF Database.
filter-list can be applied: IN - into the area, OUT - out of the area


3. NOT-ADVERTISE - ONLY filter LSA Types 1 and 2, apply on ABR (filters both, routing table and OSPF Database)
Can be used with both, "area X range" (ABR) and "summary-address" (ASBR) commands


4. DISTANCE - Set the AD of the advertised routes to 255, so that they are UNREACHABLE

5. DATABASE-FILTER - If you want to prevent ANY LSAs from being advertised (can be applied per neighbor or on INT):

you may also refer

http://cisqueros.blogspot.in/2013/05/ospf-route-filtering.html

Hi,

 

a nice blog but I wouldn't agree on 3.

My understanding is that the area range command suppresses the automatic origination of Type-3 LSAs on ABRs for the component routes matching the configured network. By default (advertise keyword), the ABR will advertise a Type-3 summary instead of those components, and with the not-advertise keyword it does not. So actually it filters Type-3 LSAs.

The area filter-list command is a more sophisticated way for Type-3 LSA filtering, introduced in IOS 12.0(15)S. I guess that before, the area range not-advertise command was the only way to achieve Type-3 LSA filtering (introduced already in IOS 10.0).

 

HTH

Rolf