JN0-102 · Question #327
Referring to the exhibit, you must move the match term above the reject term. [edit policy-options policy-statement my-policy] user@router# show term reject { then reject; } term match { from { protoc
The correct answer is D. insert term match before term reject. To change the order of terms within a Junos OS policy, the insert command is used to specify the desired placement relative to existing terms. The command insert term match before term reject correctly positions the 'match' term to be evaluated prior to the 'reject' term.
Question
Referring to the exhibit, you must move the match term above the reject term. [edit policy-options policy-statement my-policy] user@router# show term reject { then reject; } term match { from { protocolbgp; route-filter 10.10.10.0/24 exact; } } Which command would accomplish this task?
Options
- Aset term match from policy reject
- Bup 1 copy policy-statement my-policy term match to term before-reject
- Cactivate term match to policy
- Dinsert term match before term reject
How the community answered
(28 responses)- B4% (1)
- C7% (2)
- D89% (25)
Why each option
To change the order of terms within a Junos OS policy, the `insert` command is used to specify the desired placement relative to existing terms. The command `insert term match before term reject` correctly positions the 'match' term to be evaluated prior to the 'reject' term.
The `set term match from policy reject` command uses incorrect syntax for reordering and attempts to configure a `from` condition, not move a term.
The `copy` command creates a duplicate of a configuration object, it does not move the original, and the syntax provided is not for reordering terms.
The `activate` command enables a deactivated configuration object; it does not change the order of existing active terms.
The `insert` command is used in Junos OS to place a configuration object, such as a policy term, before or after another existing object, thereby changing its evaluation order.
Concept tested: Junos configuration mode - term reordering
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-basics/topics/topic-map/junos-cli-configuration-mode.html
Topics
Community Discussion
No community discussion yet for this question.