I've configured a static route 3.3.3.0/24 on R3 and it's being redistributed into RIP. R1 is receiving this prefix via R3 hop count 1 and R2 hop count 2. I've modified the AD on the prefix received from R2 i.e. worst route. I expected that this should have no affect. It does, the worst metric rip route is now preferred. AD should only be evaluated between different routing protocols, rip should prefer the lowest hop count and ignore the AD. I tested this with eigrp and it works as expected.
Tested on ios 12.4 & 15.4 ,
*Apr 21 05:05:35.544: RIP: received v2 update from 192.168.1.10 on Ethernet0/0
*Apr 21 05:05:35.544: 3.3.3.0/24 via 0.0.0.0 in 2 hops
*Apr 21 05:05:35.544: 192.168.1.4/30 via 0.0.0.0 in 1 hops
R1#
*Apr 21 05:05:37.532: RIP: received v2 update from 192.168.1.2 on Ethernet0/1
*Apr 21 05:05:37.532: 3.3.3.0/24 via 0.0.0.0 in 1 hops
*Apr 21 05:05:37.532: 192.168.1.4/30 via 0.0.0.0 in 1 hops
R1(config)#access-list 1 permit 3.3.3.0 0.0.0.255
R1(config)#router rip
R1(config-router)#distance 50 192.168.1.10 0.0.0.0 1
R1(config-router)#end
R1#
*Apr 21 05:10:37.645: RIP: received v2 update from 192.168.1.10 on Ethernet0/0
*Apr 21 05:10:37.645: 3.3.3.0/24 via 0.0.0.0 in 2 hops
*Apr 21 05:10:37.645: 192.168.1.4/30 via 0.0.0.0 in 1 hops
R1#
*Apr 21 05:10:49.725: RIP: received v2 update from 192.168.1.2 on Ethernet0/1
*Apr 21 05:10:49.725: 3.3.3.0/24 via 0.0.0.0 in 1 hops
*Apr 21 05:10:49.725: 192.168.1.4/30 via 0.0.0.0 in 1 hops
R1#sh ip route rip | b Gate
Gateway of last resort is not set
3.0.0.0/24 is subnetted, 1 subnets
R 3.3.3.0 [50/2] via 192.168.1.10, 00:00:09, Ethernet0/0
192.168.1.0/24 is variably subnetted, 5 subnets, 2 masks
R 192.168.1.4/30 [120/1] via 192.168.1.10, 00:00:09, Ethernet0/0
[120/1] via 192.168.1.2, 00:00:03, Ethernet0/1
R1#
R1(config)#int eth 0/0
R1(config-if)#shu
R1(config-if)#shutdown
R1(config-if)#do sh ip route | b Gate
Gateway of last resort is not set
3.0.0.0/24 is subnetted, 1 subnets
R 3.3.3.0 [120/1] via 192.168.1.2, 00:00:02, Ethernet0/1
192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks
C 192.168.1.0/30 is directly connected, Ethernet0/1
L 192.168.1.1/32 is directly connected, Ethernet0/1
R 192.168.1.4/30 [120/1] via 192.168.1.2, 00:00:02, Ethernet0/1
R 192.168.1.8/30 [120/2] via 192.168.1.2, 00:00:02, Ethernet0/1