redistribute ospf>rip route-map issues

Unanswered Question
Oct 22nd, 2008
User Badges:
  • Gold, 750 points or more

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?




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Giuseppe Larosa Wed, 10/22/2008 - 09:17
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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



francisco_1 Wed, 10/22/2008 - 09:28
User Badges:
  • Gold, 750 points or more

hey Giuseppe,


yes i removed the implicit deny, still doesnt work.


Francisco

ajagadee Wed, 10/22/2008 - 10:47
User Badges:
  • Cisco Employee,

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


http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/release/notes/OL_4164.html


Regards,

Arul


** Please rate if it helps **

Actions

This Discussion