From: gladston@br.ibm.com
Date: Mon Aug 22 2005 - 15:37:16 GMT-3
Can distribute-list filter based on gateway for OSPF?
Tests shows it can't.
Tests:
148.5.3.1 is filtered, don't matter if the gateway is 3.3.3.3 or another.
3.3.3.3 is the router ID of R3.
R3 and R2 advertises net 148.5.3.1.
router ospf 1
distribute-list prefix Distribute-filter gateway Gateway in
!
ip prefix-list Distribute-filter seq 5 deny 148.5.3.1/32
ip prefix-list Distribute-filter seq 10 permit 0.0.0.0/0 le 32
!
ip prefix-list Gateway seq 5 permit 3.3.3.3/32
Rack2R5#sh ip prefix-list det Gateway
ip prefix-list Gateway:
count: 1, range entries: 0, sequences: 5 - 5, refcount: 3
seq 5 permit 3.3.3.3/32 (hit count: 0, refcount: 1)
Rack2R5#clear ip rou *
Rack2R5#sh ip prefix-list det Gateway
ip prefix-list Gateway:
count: 1, range entries: 0, sequences: 5 - 5, refcount: 3
seq 5 permit 3.3.3.3/32 (hit count: 0, refcount: 1)
Rack2R5#sh ip prefix-list det Distribute-filter
ip prefix-list Distribute-filter:
count: 2, range entries: 1, sequences: 5 - 10, refcount: 2
seq 5 deny 148.5.3.1/32 (hit count: 6, refcount: 1)
seq 10 permit 0.0.0.0/0 le 32 (hit count: 108, refcount: 1)
Rack2R5#clear ip rou *
Rack2R5#sh ip prefix-list det Distribute-filter
ip prefix-list Distribute-filter:
count: 2, range entries: 1, sequences: 5 - 10, refcount: 2
seq 5 deny 148.5.3.1/32 (hit count: 8, refcount: 1)
seq 10 permit 0.0.0.0/0 le 32 (hit count: 143, refcount: 1)
This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:01:19 GMT-3