60Configuring traffic redirectingTraffic redirecting is the action of redirecting the packets matching the specific match criteria to a certainlocation for processing.The following redirect actions are supported:• Redirecting traffic to the CPU—redirects packets that require processing by the CPU to the CPU.• Redirecting traffic to an interface—redirects packets that require processing by an interface to theinterface. Note that this action applies to only Layer 2 packets, and the target interface must be aLayer 2 interface.Configuration restrictions and guidelines• The actions of redirecting traffic to the CPU and redirecting traffic to an interface are mutuallyexclusive with each other in the same traffic behavior.• A QoS policy with traffic redirecting actions can be applied to only the inbound direction of a port,VLAN, or all ports.• You can use the display traffic behavior user-defined command to view the traffic redirectingconfiguration.Configuration procedureTo configure traffic redirecting:Step Command Remarks1. Enter system view. system-view N/A2. Create a class and enter classview. traffic classifier tcl-name [ operator { and | or } ] N/A3. Configure match criteria. if-match match-criteria N/A4. Return to system view. quit N/A5. Create a behavior and enterbehavior view. traffic behavior behavior-name N/A6. Configure a traffic redirectingaction.redirect { cpu | interface interface-typeinterface-number } N/A7. Return to system view. quit N/A8. Create a policy and enterpolicy view. qos policy policy-name N/A9. Associate the class with thetraffic behavior in the QoSpolicy.classifier tcl-name behavior behavior-name N/A10. Return to system view. quit N/A