R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
306
Traffic mirroring commands
The traffic mirroring commands are available on the following hardware:
Layer 2 switching modules on the MSR routers.
mirror-to
Use mirror-to to configure a mirroring action for a traffic behavior.
Use undo mirror-to to cancel the configuration.
Syntax
mirror-to interface interface-type interface-number
undo mirror-to interface interface-type interface-number
Default
No mirroring action is configured for a traffic behavior.
Views
Traffic behavior view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
The device supports mirroring traffic to multiple interfaces. 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 interface GigabitEthernet
2/1/1 for the traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface gigabitethernet 2/1/1










