Issue filtering ODR routes using "distribute-list prefix"

From: Toh Soon, Lim (tohsoon28@gmail.com)
Date: Wed Aug 15 2007 - 22:35:58 ART


Hi All,

Has anyone tried to filter ODR routes using the "distribute-list prefix"
command? In my lab, if I use the "distribute-list prefix" command and
specify the interface, the router fails to filter the routes eventho there
is hitcounts in the prefix list. My config as follows (Task: To filter off
10.8.3.0/24):

R7#sh ip ro od
     192.168.8.0/32 is subnetted, 1 subnets
o 192.168.8.8 [160/1] via 172.30.78.1, 00:00:23, Serial0/0
     172.30.0.0/16 is variably subnetted, 14 subnets, 9 masks
o 172.30.80.0/27 [160/1] via 172.30.78.1, 00:00:23, Serial0/0
     10.0.0.0/24 is subnetted, 5 subnets
o 10.8.2.0 [160/1] via 172.30.78.1, 00:00:23, Serial0/0
o 10.8.3.0 [160/1] via 172.30.78.1, 00:03:23, Serial0/0
o 10.8.1.0 [160/1] via 172.30.78.1, 00:00:23, Serial0/0

R7

--
!
ip prefix-list ODRBLOCK3 seq 5 deny 10.8.3.0/24
ip prefix-list ODRBLOCK3 seq 10 permit 0.0.0.0/0 le 32
!
router odr
!

R7#cle ip prefi R7#sh ip prefix de Prefix-list with the last deletion/insertion: ODRBLOCK3 ip prefix-list ODRBLOCK3: count: 2, range entries: 1, sequences: 5 - 10, refcount: 2 seq 5 deny 10.8.3.0/24 (hit count: 0, refcount: 1) seq 10 permit 0.0.0.0/0 le 32 (hit count: 0, refcount: 1)

R7(config)#router od R7(config-router)#distribute-list prefix ODRBLOCK3 in Serial0/0 R7(config-router)# <---waited a while---> R7(config-router)#do sh ip pref de Prefix-list with the last deletion/insertion: ODRBLOCK3 ip prefix-list ODRBLOCK3: count: 2, range entries: 1, sequences: 5 - 10, refcount: 4 seq 5 deny 10.8.3.0/24 (hit count: 1, refcount: 1) seq 10 permit 0.0.0.0/0 le 32 (hit count: 4, refcount: 1) R7(config-router)#do sh ip ro od 192.168.8.0/32 is subnetted, 1 subnets o 192.168.8.8 [160/1] via 172.30.78.1, 00:00:38, Serial0/0 172.30.0.0/16 is variably subnetted, 14 subnets, 9 masks o 172.30.80.0/27 [160/1] via 172.30.78.1, 00:00:38, Serial0/0 10.0.0.0/24 is subnetted, 5 subnets o 10.8.2.0 [160/1] via 172.30.78.1, 00:00:38, Serial0/0 o 10.8.3.0 [160/1] via 172.30.78.1, 00:01:38, Serial0/0 o 10.8.1.0 [160/1] via 172.30.78.1, 00:00:38, Serial0/0

10.8.3.0/24 is still there! I'm only able to filter 10.8.3.0/24 when I drop the Serial0/0 from the distribute-list command. Am I missing anything? My IOS version is 12.4(13a).

Kindly advise.

Thank you.

B.Rgds, Lim TS



This archive was generated by hypermail 2.1.4 : Sat Sep 01 2007 - 11:32:11 ART