I watched the CCNP show on loop prevention. On my CIsco Virtual Lab, I am trying to change the route from 192.168.3.0 through the bottom router to a metric of 3.
router ospf 1
redistribute connected metric 2000 subnets
redistribute static metric 2000 subnets route-map rip-into-ospf
redistribute rip metric 2000 subnets route-map rip-into-ospf
network 10.0.3.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
!
router rip
version 2
redistribute connected
redistribute static route-map ospf-into-rip
redistribute ospf 1 route-map ospf-into-rip
network 172.16.0.0
default-metric 1
!
route-map rip-into-ospf deny 10
match tag 110
!
route-map rip-into-ospf permit 20
set tag 120
!
route-map rip-into-ospf permit 30
!
route-map ospf-into-rip permit 5
match ip address 103
set metric 3
set tag 110
!
route-map ospf-into-rip permit 7
match ip address 3
set metric 3
set tag 110
!
route-map ospf-into-rip deny 10
match tag 120
!
route-map ospf-into-rip permit 20
set tag 110
!
route-map ospf-into-rip permit 30
!
!
access-list 3 permit 192.168.3.0 0.0.0.255
access-list 103 permit ip any 192.168.3.0 0.0.0.255
My bottom router on both RIP and OSPF iosv-4
iosv-4#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 10.0.1.0/24 [110/2] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
C 10.0.3.0/24 is directly connected, GigabitEthernet0/2
L 10.0.3.1/32 is directly connected, GigabitEthernet0/2
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
O E2 172.16.1.0/24 [110/2000] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
C 172.16.3.0/24 is directly connected, GigabitEthernet0/1
L 172.16.3.1/32 is directly connected, GigabitEthernet0/1
O E2 172.16.5.0/24 [110/20] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
O E2 192.168.1.0/24 [110/2000] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
O E2 192.168.2.0/24 [110/2000] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
O 192.168.3.0/24 [110/3] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.4.0/24 is directly connected, GigabitEthernet0/3
L 192.168.4.1/32 is directly connected, GigabitEthernet0/3
O 192.168.5.0/24 [110/2] via 10.0.3.2, 00:05:17, GigabitEthernet0/2
iosv-4#
iosv-4#sh ip route 192.168.3.0
Routing entry for 192.168.3.0/24
Known via "ospf 1", distance 110, metric 3, type intra area
Redistributing via rip
Advertised by rip route-map ospf-into-rip
Last update from 10.0.3.2 on GigabitEthernet0/2, 00:05:36 ago
Routing Descriptor Blocks:
- 10.0.3.2, from 192.168.3.2, 00:05:36 ago, via GigabitEthernet0/2
Route metric is 3, traffic share count is 1
iosv-4#
On iosv-1 on RIP side
iosv-1#sh ip route 192.168.3.0
Routing entry for 192.168.3.0/24
Known via "rip", distance 120, metric 1
Tag 110
Redistributing via rip
Last update from 172.16.3.1 on GigabitEthernet0/2, 00:00:08 ago
Routing Descriptor Blocks:
- 172.16.5.1, from 172.16.5.1, 00:00:27 ago, via GigabitEthernet0/1
Route metric is 1, traffic share count is 1
172.16.3.1, from 172.16.3.1, 00:00:08 ago, via GigabitEthernet0/2
Route metric is 1, traffic share count is 1
Route tag 110
iosv-1#
How do I set 192.168.3.0 traffic through iosv-4 to pass metric = 3 to RIP router iosv-1