JN0-352 practice question 3 of 10

Your router receives two BGP routes for the same prefix. One route is learned from an IBGP neighbor, and the other route is learned from an EBGP neighbor. By default, which route will be selected as active in this scenario?

Full set: 65 questions
Answer options
A: The route learned through IBGP.
B: The route learned with the highest next-hop IP address.
C: The route with the shortest AS-path. Correct answer
D: The route learned from the neighbor with highest router ID.
Correct Answer:
C. The route with the shortest AS-path.
Explanation

In the Junos BGP path selection algorithm, the router evaluates multiple attributes in a strict sequence to select the active route. The route with the shortest AS-path is preferred early in the selection process (Step 3). While the scenario mentions IBGP and EBGP, the other options provided are factually incorrect based on standard BGP rules: EBGP is preferred over IBGP (not the reverse), the lowest (not highest) Router ID is preferred, and the lowest (not highest) peer IP address is preferred. Therefore, selecting the route with the shortest AS-path is the only valid BGP path selection rule among the choices.

Why Incorrect

- A. The route learned through IBGP: BGP path selection prefers EBGP routes over IBGP routes when all preceding attributes (like Local Preference and AS-path) are equal.
- B. The route learned with the highest next-hop IP address: BGP prefers the route from the peer with the lowest peer IP address as a final tie-breaker, not the highest.
- D. The route learned from the neighbor with highest router ID: BGP prefers the route with the lowest Router ID, not the highest.

References

- Juniper Networks, "Junos OS Routing Protocols Library," Document ID: Junos OS 21.4, Section

Scroll to Top