cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1711
Views
0
Helpful
4
Replies

Using prefix-list and distribute to filter routers via RIP in more of a if then, do this

zs9362
Level 1
Level 1

Not sure how best to implement or if on the right track below:
Export all routes or block all via RIP out for:
192.168.5.0/24
10.15.20.0/24
172.16.5.0/16
if routes pass and are OSPF, allow RIP process to send to neighbors and set metric to 5.
!
ip prefix-list EXPORT_ALL seq 5 permit 192.168.1.0/24
ip prefix-list EXPORT_ALL seq 10 permit 10.15.20.0/24
ip prefix-list EXPORT_ALL seq 15 permit 172.16.5.0/16
ip prefix-list EXPORT_ALL seq 20 deny 0.0.0.0/0 le 32
!
ip prefix-list EXPORT_ALL_BUT seq 5 deny 192.168.1.0/24
ip prefix-list EXPORT_ALL_BUT seq 10 deny 10.15.20.0/24
ip prefix-list EXPORT_ALL_BUT seq 15 deny172.16.5.0/16
ip prefix-list EXPORT_ALL_BUT seq 20 permit 0.0.0.0/0 le 32
!
ip prefix-list advertise-routes-through-rip seq 25 permit 0.0.0.0/0 le 32
!
router rip
version 2
network 10.0.0.0
network 172.16.0.0
network 192.168.5.0
distribute-list prefix advertise-through out rip
distribute-list prefix advertise-through out ospf 10
default metric 5

1 Accepted Solution

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

I am having trouble understanding the question.

What it sounds like is - you just want to redistribute OSPF into RIP for a specific list of prefixes.  Would that be correct?

View solution in original post

4 Replies 4

Philip D'Ath
VIP Alumni
VIP Alumni

I am having trouble understanding the question.

What it sounds like is - you just want to redistribute OSPF into RIP for a specific list of prefixes.  Would that be correct?

after the two policies have been met, just redistribute into OSPF or BGP if required.  It should only be a matter of changing the statement "distribute-list prefix advertise-through out ospf 10".  The thing I don't have experience with is creating a policy filtering using prefix list of either or.

zs9362
Level 1
Level 1

Not quite.  The requirement is a bit more nested: The filter represent 2 options, 1 where you allow all routes but the ones configured and the other option is to block all routes but the ones given. Then the next policy qualifies if the routes that passed the first policy are in the protocols (i.e. OSPF) that you want to allow rip to send to its neighbors.

zs9362
Level 1
Level 1

Not quite.  The requirement is a bit more nested: The filter represent 2 options, 1 where you allow all routes but the ones configured and the other option is to block all routes but the ones given. Then the next policy qualifies if the routes that passed the first policy are in the protocols (i.e. OSPF) that you want to allow rip to send to its neighbors.