# How does a Cisco router choose between overlapping routes?

Exam: 200-301 — Implementing and Administering Cisco Solutions
Knowledge domain: IP Connectivity
Updated: 2026-11-25T05:30:54.294453+00:00
HTML: https://learningpathx.com/faq/200-301/ccna200301-route-selection.html

## Also asked as

- Which route wins when two prefixes match the same destination?
- How do longest prefix match, administrative distance, and metric affect Cisco route selection?

A Cisco router forwards an ordinary destination-routed packet using the longest matching prefix already installed for that address. Administrative distance helps choose between eligible routes from different sources for the same prefix. Metrics compare paths within the relevant routing protocol.

For example, suppose the installed table has `10.0.0.0/8`, `10.20.0.0/16`, and `0.0.0.0/0`. A packet for `10.20.5.8` uses the `/16` even if the `/8` has a lower administrative distance. A packet for `10.99.5.8` uses the `/8`. The default route is a match of last resort.

On Cisco IOS XE 17.15.x for Catalyst 9300, inspect the exact destination with `show ip route 10.20.5.8`. Read the selected prefix, route source, and next hop or exit interface. In a typical entry with brackets such as `[110/20]`, the first number is administrative distance and the second is that route's metric. A route lookup identifies the selected path. Confirming that the next hop and return path work requires separate evidence.

### References

* [Cisco route selection for routers](https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/8651-21.html)
* [Cisco administrative distance and routing-table output](https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/15986-admin-distance.html)
* [Catalyst 9300 IPv4 routing, IOS XE 17.15.x](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-15/configuration_guide/rtng/b_1715_rtng_9300_cg/configuring_ip_unicast_routing.html)

Source: [Routing Tables, Forwarding Decisions, and Static Routes](https://learningpathx.com/news/routing-tables-forwarding-decisions-and-static-routes.html)
