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.
Practice questions
What is the default route preference of a static route in Junos?
- 0
- 5
- 10
- 100
Show answer
Answer: B. 5
Static routes default to 5. Direct routes use 0, OSPF internal 10 and RIP 100.
Which statements about route preference are correct?
- The route with the lowest preference value is preferred
- The value can range from 0 to 4,294,967,295
- BGP routes default to 170
- Static routes default to 100
- 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.
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.
