Routing Policies and Firewall Filters
6. Policy structure and terms
In Junos, a policy consists of a set of rules that determine how routing information is processed and evaluated. The structure of a policy includes several key terms:
1. Policy name: A unique name that identifies the policy.
2. Term: A set of match conditions and actions that are evaluated together.
3. Match condition: A statement that specifies the criteria that must be met for the term to be applied.
4. Action: A statement that specifies what to do if the match conditions are met. Actions can include accepting the route, modifying the route, or rejecting the route.
5. Next term: A statement that specifies what to do if the match conditions are not met and the next term in the policy should be evaluated.
A policy can have multiple terms, and each term is evaluated in order until a match is found or all terms have been evaluated. The overall structure of a policy allows you to specify complex routing requirements by chaining together multiple terms with specific match conditions and actions.
7. Policy match criteria, match types, and actions
In Junos, policies use match criteria, match types, and actions to determine how routing information is processed and evaluated.
1. Match criteria: Match criteria are used to evaluate the routing information and determine if a policy should be applied. Common match criteria include the origin of the route, the AS number, and the address prefix.
2. Match types: Match types determine how the match criteria are evaluated. Common match types include exact match, prefix match, and regular expression match.
3. Actions: Actions determine what to do if the match criteria are met. Common actions include accepting the route, modifying the route, or rejecting the route.