Junos OS routing policies are evaluated using a sequential, " first-match " logic. When a route is compared against a policy, the system evaluates the terms in the order they are defined. Once a route meets all the match criteria (the from statement) in a term, the router executes the associated action (the then statement).
If the action is a terminating action —such as accept or reject—the evaluation of that specific route for that specific policy ends immediately. In this scenario, since the route matched the first term and the action was accept, the route is successfully processed and the policy evaluation is complete. The system will not proceed to evaluate the second or third terms. This behavior is critical for network architects to understand when ordering terms; more specific " exceptions " must be placed at the top of the policy, while broader " catch-all " terms must be placed at the bottom. If the administrator wanted the evaluation to continue to the next term despite a match, they would need to explicitly include the next term action, which is a non-terminating action. Without it, a match on an accept action signifies the final decision for that route within that policy context.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit