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 43 18
7 1 as its primary next-hop and 76 1310 2 as its secondary next-hop.
Which command correctly configures this setup?
Click on the arrows to vote for the correct answer
A. B. C. D.D
The correct command to configure a static route that uses 43.18.7.1 as its primary next-hop and 76.13.10.2 as its secondary next-hop is option D:
vbnetset static route 0/0 next-hop 43.18.7.1 qualified-next-hop 76.13.10.2 preference 10
Let's break down the command and its options:
set static route
: This sets up a static route configuration.0/0
: This specifies the destination network for the static route. In this case, it is 0.0.0.0/0, which is the default route for all traffic.next-hop 43.18.7.1
: This sets 43.18.7.1 as the primary next-hop for the static route.qualified-next-hop 76.13.10.2
: This sets 76.13.10.2 as the secondary next-hop for the static route, to be used only if the primary next-hop is not available.preference 10
: This sets the preference value for the static route. A lower preference value indicates a more preferred route. In this case, a preference value of 10 is assigned.Option A:
vbnetset static route 0/0 76.13.10.2 qualified-next-hop 43.18.7.1 pref 10
This command sets up a static route with 76.13.10.2 as the destination network, which is not correct. Moreover, the order of the primary and secondary next-hops is reversed.
Option B:
vbnetset static route 0/0 next-hop 43.18.7.1 secondary-next-hop 76.13.10.2 preference 10
This command incorrectly uses the "secondary-next-hop" option, which is not supported in Junos. Instead, the "qualified-next-hop" option should be used. Moreover, the order of the primary and secondary next-hops is reversed.
Option C:
vbnetset static route 0/0 next-hop [76.13.10.2 10.10.10.5] pref 10
This command incorrectly sets up a static route with two next-hops, which is not supported in this scenario. Moreover, the order of the primary and secondary next-hops is reversed.
Therefore, the correct command is option D:
vbnetset static route 0/0 next-hop 43.18.7.1 qualified-next-hop 76.13.10.2 preference 10