10-22-2008 08:31 AM - edited 03-06-2019 02:04 AM
When i redistribute ospf to rip using route-map using ip-prefix, it doesnt work at all. when i use access-list, it works!.
This config doesnt work
router rip
version 2
redistribute ospf 1 metric 1 route-map OSPF-RIP
ip prefix-list OSPF-RIP seq 5 permit 172.25.48.0/24
ip prefix-list OSPF-RIP seq 10 permit 172.25.49.0/24
ip prefix-list OSPF-RIP seq 15 permit 172.25.51.0/24
ip prefix-list OSPF-RIP seq 16 deny 0.0.0.0/0 le 32
!
route-map OSPF-RIP permit 1
match ip address prefix-list OSPF-RIP
!
This works.
router rip
version 2
redistribute ospf 1 metric 1 route-map OSPF-RIP
access-list 10 permit 172.25.48.0 0.0.0.255
access-list 10 permit 172.25.49.0 0.0.0.255
access-list 10 permit 172.25.51.0 0.0.0.255
access-list 10 deny any
!
route-map OSPF-RIP permit 1
match ip address 10
any thought why route-map with ip-prefixes doesnt work?
10-22-2008 09:17 AM
Hello Francisco,
have you tried to use the implicit deny by removing the last entry in the prefix-list ?
use
ip prefix-list OSPF-RIP seq 5 permit 172.25.48.0/24
ip prefix-list OSPF-RIP seq 10 permit 172.25.49.0/24
ip prefix-list OSPF-RIP seq 15 permit 172.25.51.0/24
However, this is an interesting issue when the prefix-lists were introduced in 12.0 they were supported only with BGP I think and we had to use ACLs in the route-maps for redistribution.
Hope to help
Giuseppe
10-22-2008 09:28 AM
hey Giuseppe,
yes i removed the implicit deny, still doesnt work.
Francisco
10-22-2008 10:47 AM
Hello Franco,
What type of Chassis is this and what is the version that you are running?
Also, after configuring the redistribution/route-map with prefix-list, can you clear the routes and see if the routes get redistributed into RIP.
I came across this Bug ID that might be some interest to you.
Bug ID CSCsl47915
Redistribution of ospf in rip with prefix-list not working properly
Regards,
Arul
** Please rate if it helps **
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