Defining a routing policy
The routing policy classifies traffic and specifies the handling that should take place for different classes. This classification and handling are accomplished by using a set of policy rules.
Rules are configured with match criteria that include an extensive set of attributes—including protocol, source and destination addresses and ports, fragmentation, ICMP or ICMPv6 type, and TCP flags. You can also preconfigure groups of addresses, ports, and networks and refer to these groups in policy rules.
The routing policy must be applied to an interface for the policy to be effective.
To implement policy-based routing, perform the following steps.
- Define the policy rules.
- Attach the policy to an ingress interface.
Create a route in a PBR table other than Table 254.
Note: Table 254 is also known as the main table.