JN0-102 · Question #406
Click the Exhibit button. Exhibit is Missing You have the policy configuration shown in the exhibit applied to your BGP peering. You find that your customer routes coming from the 10.1.1.0/24 network
The correct answer is B. [edit policy-options policy-statement my-policy] user@router# insert term 2 before term 1. To correct rejected customer routes due to policy-statement evaluation order, a specific term that permits those routes must be moved to an earlier position in the policy.
Question
Click the Exhibit button. Exhibit is Missing You have the policy configuration shown in the exhibit applied to your BGP peering. You find that your customer routes coming from the 10.1.1.0/24 network are being rejected. Which command should be used to correct the problem?
Options
- A[edit policy-options policy-statement my-policy] user@router# insert term 1 before term 2
- B[edit policy-options policy-statement my-policy] user@router# insert term 2 before term 1
- C[edit policy-options policy-statement my-policy] user@router# copy term 2 to term 0
- D[edit policy-options policy-statement my-policy] user@router# rename term 1 to term 3
How the community answered
(62 responses)- A16% (10)
- B48% (30)
- C29% (18)
- D6% (4)
Why each option
To correct rejected customer routes due to policy-statement evaluation order, a specific term that permits those routes must be moved to an earlier position in the policy.
Inserting `term 1` before `term 2` would exacerbate the problem if `term 1` is already rejecting the routes, as it would be evaluated even earlier.
In Junos policy-statements, terms are evaluated in order; if `term 1` is processing a general reject before `term 2` (which permits the 10.1.1.0/24 routes), moving `term 2` before `term 1` ensures the permit action is taken first.
Copying `term 2` to `term 0` would place it at the beginning but `insert term 2 before term 1` is the more direct command for specifying a relative insertion.
Renaming `term 1` to `term 3` changes its name but not its evaluation order relative to `term 2` if `term 2` remains after `term 1`, thus not correcting the problem.
Concept tested: Junos policy-statement term order
Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/topic-map/routing-policy-statement-overview.html
Topics
Community Discussion
No community discussion yet for this question.