R1 receives a packet destined for 10.1.5.20. Its IP routing table holds the following three entries, all learned by different means: O 10.1.0.0/16 [110/20] via 10.0.0.2 D 10.1.5.0/24 [90/30720] via 10.0.0.6 S* 0.0.0.0/0 [1/0] via 10.0.0.1 Which entry does R1 use to forward this packet?
R1# show ip route | include 10.1
O 10.1.0.0/16 [110/20] via 10.0.0.2, GigabitEthernet0/0
D 10.1.5.0/24 [90/30720] via 10.0.0.6, GigabitEthernet0/1
S* 0.0.0.0/0 [1/0] via 10.0.0.10- AThe EIGRP route 10.1.5.0/24, because it is the most specific entry that contains the destination address Correct
- BThe OSPF route 10.1.0.0/16, because its administrative distance of 110 is the most trusted of the three entries shown
- CThe default route 0.0.0.0/0, because its administrative distance of 1 is the lowest value in the table
- DThe EIGRP route 10.1.5.0/24, because its metric of 30720 is lower than the OSPF metric of 20
Why A is correct: 10.1.5.20 falls inside 10.1.5.0/24, and a /24 is a longer (more specific) match than the /16, so longest prefix match selects this entry regardless of administrative distance or metric.
Why B is wrong: Administrative distance only breaks a tie between routes to the same prefix; it is not consulted before the longest prefix match, and 110 is in fact a higher (less trusted) value than the EIGRP route's 90.
Why C is wrong: The default route is the shortest possible match and is used only when no more specific entry exists; a lower administrative distance does not let a less specific route win over a longer prefix match.
Why D is wrong: This reaches the right entry but for the wrong reason and gets the comparison backwards; 30720 is not lower than 20, and metrics from different protocols are never compared directly. The deciding factor is the longer prefix.