R211x-HP Flexfabric 11900 Network Management and Monitoring Command Reference

238
Traffic mirroring commands
The traffic mirroring commands are available on both Layer 2 and Layer 3 Ethernet interfaces. The term
"interface" in this chapter collectively refers to these two types of interfaces. You can use the port
link-mode command to configure an Ethernet port as a Layer 2 or Layer 3 interface (see Layer 2LAN
Switching Configuration Guide).
mirror-to
Use mirror-to to specify the mirroring destination for a traffic behavior.
Use undo mirror-to to cancel the configuration.
Syntax
mirror-to { cpu | interface interface-type interface-number }
undo mirror-to { cpu | interface interface-type interface-number }
Default
No mirroring destination is configured for a traffic behavior.
Views
Traffic behavior view
Predefined user roles
network-admin
mdc-admin
Parameters
cpu: Mirrors traffic to the CPU, which resides in the card configured with traffic mirroring.
interface interface-type interface-number: Mirrors traffic to an interface specified by its type and number.
Usage guidelines
You can configure the action of mirroring traffic to multiple interfaces for a traffic behavior.
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 interface Ten-GigabitEthernet
1/0/1 for the traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface ten-gigabitethernet 1/0/1
# Create traffic behavior 1, and configure the action of mirroring traffic to VLAN 100 for the traffic
behavior.