Make RIPv2 work.
r2 should not receive 3.0.0.0/8
r3 should not receive 2.0.0.0/8
With a prefix-list.
r1:
!
router rip
version 2
redistribute connected route-map CONNECTED->RIP
network 12.0.0.0
network 13.0.0.0
distribute-list prefix F0/0 out
!
ip prefix-list F0/0 seq 5 permit 1.0.0.0/8
ip prefix-list F0/0 seq 10 permit 13.0.0.0/16ip prefix-list F0/0 seq 15 permit 12.0.0.0/16!
route-map CONNECTED->RIP permit 10
match interface FastEthernet0/0
!
r2:
!
router rip
version 2
redistribute connected route-map CONNECTED->RIP
network 12.0.0.0
!
route-map CONNECTED->RIP permit 10
match interface FastEthernet0/0
!
r3:
!
router rip
version 2
redistribute connected route-map CONNECTED->RIP
network 13.0.0.0
!
route-map CONNECTED->RIP permit 10
match interface FastEthernet0/0
!
With an acl.
r1:
!
router rip
version 2
redistribute connected route-map CONNECTED->RIP
network 12.0.0.0
network 13.0.0.0
distribute-list 1 out
!
!
route-map CONNECTED->RIP permit 10
match interface FastEthernet0/0
!