JN0-102 · Question #322
Which two statements are true about terms in a routing policy? (Choose two.)
The correct answer is B. If a term does not contain a from statement, all routes match. D. A then statement is not mandatory in a term.. In Junos OS routing policies, if a term lacks a from statement, it implicitly matches all routes. Furthermore, a then statement, while common for specifying actions, is not always mandatory within a term, as processing can continue to the next term or apply the default policy act
Question
Which two statements are true about terms in a routing policy? (Choose two.)
Options
- AA routing policy cannot have more than one term.
- BIf a term does not contain a from statement, all routes match.
- CIf a term does not contain a from statement, the Junos OS will not commit.
- DA then statement is not mandatory in a term.
How the community answered
(28 responses)- A7% (2)
- B89% (25)
- C4% (1)
Why each option
In Junos OS routing policies, if a term lacks a `from` statement, it implicitly matches all routes. Furthermore, a `then` statement, while common for specifying actions, is not always mandatory within a term, as processing can continue to the next term or apply the default policy action.
A routing policy can and often does contain multiple terms, which are evaluated in a specific sequential order.
If a term in a routing policy does not include a `from` statement, it means that all routes will match the conditions of that term, proceeding to its `then` actions or the next term if no `then` is present.
Omitting a `from` statement is a valid configuration and will not prevent the Junos OS from committing the policy.
A `then` statement is not mandatory in every term; if it is omitted, and other terms follow, processing continues to the next term, or the default policy action applies if it is the last term.
Concept tested: Junos policy term behavior - from/then
Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/topic-map/policy-match-conditions.html
Topics
Community Discussion
No community discussion yet for this question.