Bitzu

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

Single choice

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?

  1. 10.0.0.0/8
  2. 10.1.0.0/16
  3. 10.1.1.0/24
  4. 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.

Select all that apply

Which statements about administrative distance are true?

  1. A lower value is preferred
  2. It ranks routes learned from different sources
  3. A static route has a default value of 1
  4. A higher value is preferred
  5. 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

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.

Download on the App StoreGet it on Google Play

More N10-009 topics in this module