JN0-102: Juniper Networks Certified Associate Junos Exam - Question on Static Routes

Next-Hop IP Address for Destination IP 192.168.1.142 - Exam Answer

Prev Question Next Question

Question

-- Exhibit --

user@router> show route protocol static

inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

192.168.1.128/27 *[Static/5] 00:03:13

>to 10.20.106.10 via fe-0/0/5.1

192.168.1.144/29 *[Static/5] 00:03:13

>to 10.20.14.131 via ge-0/0/0.0

192.168.1.192/27 *[Static/5] 00:03:13

>to 10.18.1.1 via ge-0/0/1.0

192.168.1.128/28 *[Static/5] 00:01:06

>to 10.20.14.130 via ge-0/0/0.0

-- Exhibit --

Given the routing entries shown in the exhibit, which next-hop IP address will be used for the destination IP address 192.168.1.142? (Assume that only static routes are available for the destination.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D

To determine the next-hop IP address for the destination IP address 192.168.1.142, we need to look for the most specific matching route in the routing table. In this case, we have four static routes in the routing table for the 192.168.1.0/24 network:

  • 192.168.1.128/27
  • 192.168.1.144/29
  • 192.168.1.192/27
  • 192.168.1.128/28

The longest prefix match for the destination IP address 192.168.1.142 is 192.168.1.144/29 because it has a mask length of 29 bits, which covers the destination address. Therefore, the next-hop IP address for this destination is 10.20.14.131, which is the next-hop specified in the route entry for 192.168.1.144/29:

192.168.1.144/29 *[Static/5] 00:03:13 >to 10.20.14.131 via ge-0/0/0.0

Therefore, the answer is B. 10.20.14.131.