R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

262
Traffic mirroring configuration commands
mirror-to
Use mirror-to to configure traffic mirroring for a traffic behavior.
Use undo mirror-to to remove traffic mirroring configuration.
Syntax
mirror-to interface interface-type interface-number
undo mirror-to interface interface-type interface-number
Default
Traffic mirroring is not configured for a traffic behavior.
Views
Traffic behavior view
Default command level
2: System level
Parameters
interface interface-type interface-number: Mirrors traffic to an interface specified by its type and number.
Usage guidelines
The device only supports the action of mirroring traffic to one destination interface. In a traffic behavior,
if you use the mirror to command multiple times, the most recent configuration takes effect.
The following matrix shows the command and router compatibility:
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50
MSR10
00
mirror-to Yes No No No Yes Yes No
Examples
# Create traffic behavior 1, and configure the action of mirroring traffic to port Ethernet 1/1 for the traffic
behavior.
<Sysname> system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface ethernet 1/1