04-03-2014 01:36 PM - edited 03-04-2019 10:43 PM
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
04-03-2014 01:59 PM
Hello
this distribute-list is allowing only a default route into the route table and deny everything else.
res
paul
04-03-2014 11:23 PM
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
04-04-2014 11:28 AM
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
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