68Traffic redirecting configurationThis chapter includes these sections:• Traffic redirecting overview• Configuring traffic redirectingTraffic redirecting overviewTraffic redirecting redirects the packets matching the specific match criteria to a certain location forprocessing.The following redirecting 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. This action applies to only Layer 2 packets, and the target interface must be a Layer 2interface.• Redirecting traffic to the next hop: redirects packets that require processing by an interface to theinterface. This action only applies to Layer 3 packets.Configuring traffic redirectingFollow these steps to configure traffic redirecting:To do… Use the command… RemarksEnter system view system-view —Create a class and enter classviewtraffic classifier tcl-name [ operator { and| or } ] —Configure match criteria if-match match-criteria —Return to system view quit —Create a behavior and enterbehavior view traffic behavior behavior-name RequiredConfigure a traffic redirectingactionredirect { cpu | interface interface-typeinterface-number | next-hop { ipv4-add1[ ipv4-add2 ] | ipv6-add1 [ interface-typeinterface-number ] [ ipv6-add2[ interface-type interface-number ] ] }[ fail-action { discard | forward } ] }OptionalReturn to system view quit —Create a policy and enter policyview qos policy policy-name —Associate the class with thetraffic behavior in the QoSpolicyclassifier tcl-name behaviorbehavior-name —