You are logged into a router and have navigated to the (edit routing-options] level of the hierarchy. You have been asked to create a static route that will use
10.10.10.1 as its primary next-hop and 10.10.10.5 as its secondary next-hop.
Which command correctly configures this scenario?
Click on the arrows to vote for the correct answer
A. B. C. D.C
The correct answer is B.
Explanation: The question asks to create a static route with two next-hops, where 10.10.10.1 is the primary next-hop and 10.10.10.5 is the secondary next-hop.
In Juniper routers, static routes can be configured using the "set static route" command followed by the destination prefix and the next-hop address.
Option A: set static route 8/8 10.10.10.1 qualified-next-hop 10.10.10.5 pref 10 This command configures a static route for the destination prefix 8/8 with a primary next-hop of 10.10.10.1 and a qualified next-hop of 10.10.10.5 with preference 10. However, the "qualified-next-hop" option is used to specify a next-hop that can be used only if the primary next-hop is unavailable. It does not define a secondary next-hop as required by the question.
Option B: set static route 8/8 next-hop 10.10.10.1 secondary-next-hop 10.10.10.5 preference 10 This command configures a static route for the destination prefix 8/8 with a primary next-hop of 10.10.10.1 and a secondary next-hop of 10.10.10.5 with preference 10. The "secondary-next-hop" option is used to specify a backup next-hop to be used only if the primary next-hop is unavailable.
Option C: set static route 8/8 next-hop 10.10.10.1 qualified-next-hop 10.10.10.5 preference 10 This command is similar to option A and configures a qualified next-hop of 10.10.10.5 to be used only if the primary next-hop of 10.10.10.1 is unavailable. It does not define a secondary next-hop as required by the question.
Option D: set static route 8/8 next-hop [10.10.10.1 10.10.10.5] pref 10 This command configures a static route for the destination prefix 8/8 with two next-hops specified as a list. However, this command does not specify which next-hop is primary and which is secondary, as required by the question.
Therefore, option B is the correct answer, as it configures a static route for the destination prefix 8/8 with 10.10.10.1 as the primary next-hop and 10.10.10.5 as the secondary next-hop.