Prefix-list RIP and redistribution

From: Stefan Grey (examplebrain@hotmail.com)
Date: Tue Aug 01 2006 - 06:46:53 ART


Hello guys!

lo - R1 - R2 -lo

I have rip configured between R1 and R2. I also configured some loopbacks
interfaces on R1
with IP addresses of: 111.1.x.0 (x=1,2,3,4,5,6,7). I want redistribute this
directly connected interfaces into RIP so that R2 has the route to it.

I configure: router rip
redistribute connected metric 2 route-map NEWCONNECTED:

Question:
If I use configuration A everything works just fine:
A:
access-list 2 permit 111.1.0.0 0.0.7.255
route-map NEWCONNECTED permit 10
match ip address 2

But if I use configuration B nothig is redistributed, and R2 doesn't see any
routes from R1:
b:
ip prefix-list NEW permit 111.1.0.0/21
route-map NEWCONNECTED permit 10
match ip address prefix-list NEW.

Why ip prefix-list doesn't match this routes. I just can't understand what
is ther reason of such behaviour. Could anybody please explain.

Thanks,



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:55 ART