redirect
Use redirect to configure a traffic redirecting action in a traffic behavior.
Use undo redirect to delete the action.
Syntax
redirect { cpu | interface interface-type interface-number }
undo redirect { cpu | interface interface-type interface-number }
Default
No traffic redirecting action is configured.
Views
Traffic behavior view
Predefined user roles
network-admin
Parameters
cpu: Redirects traffic to the CPU.
interface: Redirects traffic to an interface.
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
Redirecting traffic to the CPU and redirecting traffic to an interface are mutually exclusive with each other in the same traffic behavior. The most recently configured redirecting action takes effect.
Examples
# Configure redirecting traffic to GigabitEthernet 1/0/1 in traffic behavior database.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] redirect interface GigabitEthernet 1/0/1
Related commands
classifier behavior
qos policy
traffic behavior