CCNA 200-301 · IP Connectivity · hard

A Cisco router receives a packet destined for IPv4 address 10.16.1.50. The router has the following four routes in its routing Information sources: 1. OSPF (AD 110): 10.16.0.0/16 via 192.168.1.1 2. EIGRP (AD 90): 10.16.0.0/20 via 192.168.1.2 3. RIP (AD 120): 10.16.1.0/26 via 192.168.1.3 4. Static (AD 1): 10.16.1.0/24 via 192.168.1.4 Which next-hop IP address will the router use to forward the packet to 10.16.1.50?

Published · Last updated · checked before publication — how we verify questions

Options

  • A192.168.1.4 because the Static route has the lowest AD (1)
  • B192.168.1.2 because EIGRP (AD 90) beats OSPF (AD 110)
  • C192.168.1.3 because 10.16.1.0/26 is the longest matching prefixCorrect answer
  • D192.168.1.1 because OSPF link-state metrics take priority

Answer: C. 192.168.1.3 because 10.16.1.0/26 is the longest matching prefix

First, verify which prefixes match 10.16.1.50: /16 (10.16.0.0–10.16.255.255), /20 (10.16.0.0–10.16.15.255), /24 (10.16.1.0–10.16.1.255), and /26 (10.16.1.0–10.16.1.63) all contain 10.16.1.50. Routers always evaluate Longest Prefix Match (LPM) before Administrative Distance. Because 10.16.1.0/26 is the longest matching prefix (/26 > /24 > /20 > /16), the packet is forwarded via 192.168.1.3 regardless of RIP's higher AD (120).

Why the other options are wrong

  • A. 192.168.1.4 because the Static route has the lowest AD (1) — Administrative Distance only breaks ties between routes with the exact same prefix length; /26 is more specific than /24.
  • B. 192.168.1.2 because EIGRP (AD 90) beats OSPF (AD 110) — The /20 prefix is shorter than both /24 and /26, so Longest Prefix Match selects /26.
  • D. 192.168.1.1 because OSPF link-state metrics take priority — The /16 prefix is the least specific match of the four routes.

All IP Connectivity questions and the topic overview →

Cisco and CCNA are trademarks of Cisco Systems, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.