Juniper JN0-102 Exam: Configuring Static Routes with Non-Directly Connected Next Hop

Configuring Static Routes with Non-Directly Connected Next Hop

Prev Question Next Question

Question

You have been asked to create a static route with a next hop that is not directly connected to the router.

Which configuration parameter enables the static route to accomplish this scenario?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

The correct answer is C. next-hop.

Static routes are used to manually configure the forwarding path of traffic in a network. When a router receives a packet, it consults its routing table to determine where to send the packet next. If the destination IP address of the packet matches a static route in the routing table, the router forwards the packet according to the instructions in that static route.

By default, static routes require the next hop to be directly connected to the router. However, it is possible to configure a static route with a next hop that is not directly connected to the router. This is known as a "recursive" static route.

To configure a recursive static route, you use the "next-hop" configuration parameter. This parameter specifies the IP address of the next hop that the router should use to forward packets to the destination network. The next hop can be any reachable IP address, not necessarily one that is directly connected to the router.

For example, let's say you have a router R1 with two interfaces: ge-0/0/0 connected to network 10.0.0.0/24 and ge-0/0/1 connected to network 20.0.0.0/24. You want to configure R1 to forward traffic destined for network 30.0.0.0/24 to a router R2 with IP address 192.168.1.1, which is not directly connected to R1. Here's how you would do it:

vbnet
set routing-options static route 30.0.0.0/24 next-hop 192.168.1.1

This configuration tells R1 to forward traffic destined for network 30.0.0.0/24 to the next hop 192.168.1.1, which is the IP address of R2. R1 will then consult its routing table to determine how to reach 192.168.1.1, which may involve forwarding the packet to another router along the way.

Option A, "resolve", is not a valid configuration parameter for static routes.

Option B, "indirect", is also not a valid configuration parameter for static routes.

Option D, "recursive", is a valid term to describe a static route with a next hop that is not directly connected to the router, but it is not a configuration parameter itself.