JN0-102 · Question #318
Using the routing table shown in the exhibit, what will be the next-hop IP address used for a destination IP address of 192.168.1.1? (Assume that the only routes to this destination are static…
The correct answer is D. 10.20.106.10. For the destination 192.168.1.1, the router evaluates the static routes and selects 192.168.1.0/24 as the only matching and most specific route, directing traffic to the next-hop 10.20.106.10.
Question
Using the routing table shown in the exhibit, what will be the next-hop IP address used for a destination IP address of 192.168.1.1? (Assume that the only routes to this destination are static routes.) 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.0/24 *[Static/5] 00:03:13 > to 10.20.106.10 via fe-0/0/5.106 192.168.1.192/26 *[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.4/30 *[Static/5] 00:01:06 > to 10.20.14.130 via ge-0/0/0.0
Options
- A10.20.14.130
- B10.18.1.1
- C10.20.14.131
- D10.20.106.10
How the community answered
(48 responses)- A2% (1)
- B4% (2)
- C2% (1)
- D92% (44)
Why each option
For the destination 192.168.1.1, the router evaluates the static routes and selects `192.168.1.0/24` as the only matching and most specific route, directing traffic to the next-hop `10.20.106.10`.
`10.20.14.130` is the next-hop for `192.168.1.4/30`, which covers the range 192.168.1.4 - 192.168.1.7, not 192.168.1.1.
`10.18.1.1` is the next-hop for `192.168.1.192/27`, which covers the range 192.168.1.192 - 192.168.1.223, not 192.168.1.1.
`10.20.14.131` is the next-hop for `192.168.1.192/26`, which covers the range 192.168.1.192 - 192.168.1.255, not 192.168.1.1.
The destination IP address `192.168.1.1` falls within the range of `192.168.1.0/24` (192.168.1.0 to 192.168.1.255). No other static route in the exhibit (`192.168.1.192/26`, `192.168.1.192/27`, `192.168.1.4/30`) includes `192.168.1.1` in its prefix range. Therefore, `192.168.1.0/24` is the only matching route, and its next-hop `10.20.106.10` will be used.
Concept tested: Longest prefix match routing
Source: https://www.juniper.net/documentation/us/en/software/junos/policy-routing/topics/topic-map-policy-routing-overview.html
Topics
Community Discussion
No community discussion yet for this question.