cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
395
Views
0
Helpful
3
Replies

redistribute ospf>rip route-map issues

francisco_1
Level 7
Level 7

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?

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

hey Giuseppe,

yes i removed the implicit deny, still doesnt work.

Francisco

ajagadee
Cisco Employee
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 **

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card