256
Examples
# Create traffic behavior 1, and configure the action of mirroring traffic to the CPU for the traffic
behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to cpu
# Create traffic behavior 1, and configure the action of mirroring traffic to FortyGigE 1/0/1 for the
traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface fortygige 1/0/1
# Create traffic behavior 1, and configure the action of mirroring traffic to FortyGigE 1/0/1 for the
traffic behavior. Specify the source IP address, destination IP address, and DSCP value for the
mirrored packets sent out of the interface as 1.1.1.1, 2.2.2.2, and 20, respectively.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface fortygige 1/0/1 destination-ip 1.1.1.1 source-ip
2.2.2.2 dscp 20
# Create traffic behavior 1, and configure the action of mirroring traffic through the loopback mode to
FortyGigE 1/0/1 for the traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface fortygige 1/0/1 loopback