RIP2 and OSPF redistribution

From: ccie_studying (ccie_studying@hotmail.com)
Date: Mon Dec 23 2002 - 00:42:00 GMT-3


Hello, everybody! I really need help on this RIP2 and OSPF redistribution
:-(:

Senario:

R1
(130.1.123.1/24)
(130.1.123.2/24) (130.1.123.3/24)
R2 R3
(130.1.9.2/24) (130.1.9.3/24)
(130.1.9.5/24)
R5

1. R1, R2 and R3 are running RIP version 2 and IP subnet is 130.1.123.0/24
2. R2, R3 and R5 are partial meshed FR connection, which uses IP subnet
130.1.9.0/24 and belongs OSPF area
3. FR OSPF configuration, I use OSPF network type point-to-multipoint for
all three routers
4. loopback address on all the routers are 130.1.x.x/24 (x is the router
number)
5. R2 and R3 loopback interface belongs OSPF.
6. Mutual redistribution on R2 and R3 between RIP and OSPF
7. RIP should use R2 to get to OSPF and OSPF should use R2 to get back to
RIP too.

My configuration on R2 and R3 are:

R2:

router rip
no auto
redistribute ospf 1 subnet metric 2 route-map ospf2rip
net 132.1.0.0
passive loopback 0
passive s0

router ospf
redistribute rip subnet metric 100 route-map rip2ospf
net 132.1.2.2 0.0.0.255 area 0
net 132.1.9.0 0.0.0.255 area 0

route-map ospf2rip
match ip address 10
route-map rip2ospf
match ip address 20

access-list 10 deny 132.1.123.0 0.0.0.255
access-list 10 deny 132.1.1.1 0.0.0.255
access-list 10 permit any

access-list 20 permit 132.1.123.0 0.0.0.255
access-list 20 permit 132.1.1.1 0.0.0.255

R3:

router rip
no auto
redistribute ospf 1 subnet metric 3 route-map ospf2rip
net 132.1.0.0
passive loopback 0
passive s0

router ospf
redistribute rip subnet metric 110 route-map rip2ospf
net 132.1.2.2 0.0.0.255 area 0
net 132.1.9.0 0.0.0.255 area 0

route-map ospf2rip
match ip address 10
route-map rip2ospf
match ip address 20

access-list 10 deny 132.1.123.0 0.0.0.255
access-list 10 deny 132.1.1.1 0.0.0.255
access-list 10 permit any

access-list 20 permit 132.1.123.0 0.0.0.255
access-list 20 permit 132.1.1.1 0.0.0.255

After I did this, my problem is:

- In R1:
    132.1.9.2/24 come from R3 (should be from R2)
    132.1.9.3/24 come from R2 (should be from R3)
    132.1.9.0/24 come from both R2 and R3 with metric 1 (should be
from R2 based on requirement no. 7)

I struggled quite long time, still can not solve all the problem here. Any
suggestion, testing, and answer will be great appreciated!

Thanks!
.



This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:51 GMT-3