N10-009 ยท Routing
Route selection
Longest prefix match, administrative distance and metric, and the order they are applied.
Key points
- Forwarding picks the longest (most specific) matching prefix first.
- When several sources offer the same prefix, the lowest administrative distance wins (connected 0, static 1, eBGP 20, EIGRP internal 90, OSPF 110, RIP 120).
- Within one protocol, the lowest metric wins.
Source: https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/15986-admin-distance.html
Practice questions
A router holds 10.0.0.0/8, 10.1.0.0/16 and 10.1.1.0/24. Which route forwards a packet to 10.1.1.9?
- 10.0.0.0/8
- 10.1.0.0/16
- 10.1.1.0/24
- None, it is dropped
Show answer
Answer: C. 10.1.1.0/24
Longest prefix match: all three contain the address, but /24 is the most specific.
Which statements about administrative distance are true?
- A lower value is preferred
- It ranks routes learned from different sources
- A static route has a default value of 1
- A higher value is preferred
- It decides between two routes from the same protocol
Show answer
Answer: A. A lower value is preferred, B. It ranks routes learned from different sources, C. A static route has a default value of 1
AD ranks the trustworthiness of different route sources: lower wins, and static routes default to 1. Comparing routes from the same protocol is the job of the metric.
True or false: a route with lower administrative distance always beats a route with a longer matching prefix.
Show answer
Answer: False
False. Longest prefix match comes first; administrative distance only compares routes to the same prefix.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
