Advanced Traffic Management Guide K/KA/KB.15.15

NOTE: Policy Based Routing (PBR) is available on the 3800 Series switch and the 5400/8200
series switch which all have v2 or higher modules. Any v1 modules will prevent PBR from functioning.
PBR is not available on the 3500, 3500yl, 6200yl, nor 6600 Series switches.
For example, QoS policies support QoS-specificactions, such as rate limiting, 802.1p-priority,
IP-precedence, and DSCP-codepoint assignment. Port and VLAN mirroring policies support
mirror-destination assignment for matching packets. PBR policies support specifying the IP next-hop
and IP default next-hop, tunnel ID, or null for matching packets.
1. To create a service policy that performs feature-specific actions on selected packets, enter the
policy feature-name command from the global configuration context.
Context: Global configuration
Syntax:
[no] policy [ qos | mirror | pbr ] [ policy-name]
Defines the name of a service policy and enters the policy configuration context,
where policy-name is a text string (64 characters maximum).
A traffic policy consists of one or more actions that are configured for each class of traffic.
The configured actions are executed on packets that match a match statement in a class. No
policy action is performed on packets that match an ignore statement. You can configure
multiple classes in a policy.
2. To configure the actions that you want to execute on packets that match the match criteria in
a specified class, enter one or more class action commands from the policy configuration
context.
Context: Policy configuration
Syntax:
[no] [seq-number] class [ ipv4 | ipv6 classname action action-name ]
[action action-name ...]
Defines the actions to be applied on a pre-configured IPv4 or IPv6 traffic class when
a packet matches the match criteria in the class.
You can enter multiple class-action statements for the same class. The actions
supported for a class command differ according to the feature-specific policy (for
example, QoS or mirroring) configured with the policy command in Step 1.
seq-number (Optional) Sequentially orders the
class-action statements in a policy
configuration. Actions are executed on
matching packets in numerical order.
Default: Class-action statements are
numbered in increments of 10, starting at
10.
class ipv4|ipv6 classname Defines the preconfigured class on which the
actions in a class-action statement are
executed, and specifies whether the class
consists of IPv4 or IPv6 traffic. The class
name is a text string (64 characters
maximum).
356 Classifier-based software configuration