Action parameters define how packets are processed when they match conditions in access lists or route policies. For access lists, packets can be accepted or dropped, counted, classified, mirrored, or policed. For route policies, routes can be accepted or rejected with various attribute modifications.
Access list parameters
When a packet matches the conditions in the match portion of an access list, the packet can be accepted or dropped, and it can be counted. Then, you can classify, mirror, or police accepted packets.
In the CLI, you configure the action parameters with the policy access-list sequence action command.
Each sequence in an access list can contain one action condition.
In the action, you first specify whether to accept or drop a matching data packet, and whether to count it:
| Action Condition |
Description |
| Accept |
Accepts the packet. An accepted packet is eligible to be modified by the additional parameters configured in the action portion of the access list. |
| Counter |
Name of a counter. To display counter information, use the show policy access-lists counters command on the Cisco IOS XE Catalyst SD-WAN device. |
| Drop |
Discards the packet. This is the default action. |
For a packet that is accepted, these actions can be configured:
| Description |
Value or Range |
| Class |
Specifies the name of a QoS class. It can also be defined with a policy class-map command. |
| Mirror List |
Specifies the name of mirror . It is defined with a policy mirror command. |
| Policer |
Specifies the name of a policer defined with a policy policer command. |
| DSCP |
Specifies the packet's DSCP value. The range is 0 through 63. |
| Next Hop |
Specifies the IPv4 address. It sets the next hop IP address to which the packet should be forwarded.
Note
Starting from Cisco vManage Release 20.5.1 and Cisco IOS XE Catalyst SD-WAN Release 17.5.1a, Use Default Route when Next Hop is not available field is available next to Next Hop action parameter.
|
Route policy parameters
Each sequence in a localized control policy can contain one action condition.
When a route matches the conditions in the match portion of a route policy, the route can be accepted or rejected:
For a packet that is accepted, these actions can be configured:
| Description |
Value or Range |
| Aggregator |
Sets the AS number in which a BGP route aggregator is located and the IP address of the route aggregator. The range is 1 through 65535. |
| AS Path |
Sets an AS number or a series of AS numbers to exclude from the AS path or to prepend to the AS path. The range is 1 through 65535. |
| Atomic Aggregate |
Sets the BGP atomic aggregate attribute. |
| Community |
Sets the BGP community value. Starting from Cisco IOS XE Catalyst SD-WAN Release 17.5.1a, the Community Additive option field is available. Additive option appends the communities to the existing communities of the route. |
| Local Preference |
Sets the BGP local preference. The range is 0 through 4294967295. |
| Metric |
Sets the metric value. The range is 0 through 4294967295. |
| Metric Type |
Sets the metric type. The options are type1 or type2. |
| Next Hop |
Sets the IPv4 address. It sets the next hop IP address to which the packet should be forwarded.
Note
Starting from Cisco vManage Release 20.5.1 and Cisco IOS XE Catalyst SD-WAN Release 17.5.1a, Use Default Route when Next Hop is not available field is available next to Next Hop action parameter.
|
| OMP Tag |
Sets the OMP tag for OSPF to use. The range is 0 through 4294967295. |
| Origin |
Sets the BGP origin code. The options are: EGP (default), IGP, Incomplete. |
| Originator |
Sets the IP address from which the route was learned. |
| OSPF Tag |
Sets the OSPF tag value. The range is 0 through 4294967295. |
| Weight |
Sets the BGP weight. The range is 0 through 4294967295. |