Which two statements are true about terms in a routing policy? (Choose two.)
Click on the arrows to vote for the correct answer
A. B. C. D.BD
Routing policies in Junos operating system (OS) are used to control the route advertisement and route selection process. A routing policy consists of one or more terms, and each term contains a set of match conditions and actions that determine how to handle a route.
Out of the given statements, only statement B and D are true about terms in a routing policy. Let's discuss each statement in detail:
A. A routing policy cannot have more than one term. This statement is false. A routing policy can have one or more terms. Each term within the policy represents a different set of match conditions and actions.
B. If a term does not contain a from statement, all routes match. This statement is true. The "from" statement in a term specifies the match conditions for a route. If a term does not contain a "from" statement, it will match all routes. For example, a term without a "from" statement can be used to apply a common action to all routes in the policy.
C. If a term does not contain a from statement, the Junos OS will not commit. This statement is false. If a term does not contain a "from" statement, the Junos OS will still commit the policy. However, since the term matches all routes, the policy may have unintended consequences.
D. A then statement is not mandatory in a term. This statement is true. A term can contain only a match condition without an action. However, a routing policy must have at least one term with an action statement to be effective. The "then" statement in a term specifies the action to take if the match conditions are met.
In summary, a routing policy can have one or more terms, a term without a "from" statement matches all routes, a term can contain only a match condition without an action, and a routing policy must have at least one term with an action statement to be effective.