Question 680
At a managed network team troubleshooting an internet edge, a Junos specialist investigates this scenario: A transit neighbor sends several unwanted networks and the receiving Junos router must accept only approved prefixes. The diagnosis must distinguish a healthy BGP session from eligible received routes. Which configuration adjustment should be made first to address this issue?
Explanation
Correct Answer
For a managed network team troubleshooting an internet edge, the direct corrective action is: Attach a scoped import policy matching authorized prefixes and explicitly rejecting prohibited ones. This addresses the mechanism: A BGP import policy determines which incoming route advertisements are accepted into the routing table. Confirm by checking: Accepted routes appear in the BGP route table and unwanted routes are rejected or hidden as intended. During rollout, test term ordering and default policy behavior before enabling changes on a production peer.
Incorrect Answers
BGP best-path selection considers origin type after higher-priority attributes, normally preferring IGP over EGP over incomplete. The appropriate correction for the reported case is: Attach a scoped import policy matching authorized prefixes and explicitly rejecting prohibited ones.
BGP export policy controls which eligible active routes the speaker announces to selected neighbors. Fixing that different mechanism would not address the current root cause: a BGP import policy determines which incoming route advertisements are accepted into the routing table.
A BGP prefix-limit control detects or constrains excessive received NLRI from a peer. Its verification is distinct from the reported condition: A transit neighbor sends several unwanted networks and the receiving Junos router must accept only approved prefixes. The diagnosis must distinguish a healthy BGP session from eligible received routes.