Bitzu

JN0-106 ยท Routing fundamentals

Route preference

Default preference values per protocol, how the active route is chosen, the asterisk in show route, and changing preference.

Key points

  • When several protocols offer a route to the same prefix, Junos picks the one with the lowest preference value as the active route (marked with an asterisk in show route).
  • Defaults: direct 0, static 5, OSPF internal 10, IS-IS Level 1 internal 15, Level 2 internal 18, RIP 100, aggregate 130, OSPF external 150, BGP 170.
  • The value is a number from 0 to 4,294,967,295 and can be changed per protocol or per static route.

Source: https://juniper.net/documentation/en_US/junos12.2/topics/reference/general/routing-protocols-default-route-preference-values.html

Practice questions

Single choice

What is the default route preference of a static route in Junos?

  1. 0
  2. 5
  3. 10
  4. 100
Show answer

Answer: B. 5

Static routes default to 5. Direct routes use 0, OSPF internal 10 and RIP 100.

Select all that apply

Which statements about route preference are correct?

  1. The route with the lowest preference value is preferred
  2. The value can range from 0 to 4,294,967,295
  3. BGP routes default to 170
  4. Static routes default to 100
  5. A higher value makes a route more preferred
Show answer

Answer: A. The route with the lowest preference value is preferred, B. The value can range from 0 to 4,294,967,295, C. BGP routes default to 170

The lowest value wins, the range is 0 to 4,294,967,295, and BGP uses 170 for both EBGP and IBGP. Static routes default to 5, not 100, and a higher number is less preferred.

True or false

A route with preference 170 is chosen over a route with preference 10 to the same prefix.

Show answer

Answer: False

False. In Junos the lower preference value wins, so the route with 10 becomes active.

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 JN0-106 topics in this module