R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)
259
Syntax
[ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
undo [ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
Default
A port does not serve as a source port for any mirroring group.
Views
Interface view
Default command level
2: System level
Parameters
mirroring-group group-id: Specifies a local or remote source group by its number. The mirroring group
specified by group-id must already exist. The default value is 1.
both: Mirrors both inbound and outbound packets on the current port.
inbound: Mirrors only inbound packets on the current port.
outbound: Mirrors only outbound packets on the current port.
Usage guidelines
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group command matches the actual monitored direction of the port specified earlier in
the mirroring-port command.
All MSR routers support this command. The following matrix shows the value ranges for the group-id
argument:
MSR900 MSR93
X
MSR20-1
X
MSR20
MSR30
MSR50 MSR1000
1 to 5 1 to 5 1 to 5 1 to 5 1 to 5 1 to 10 1 to 5
Examples
# Create local mirroring group 1, configure Ethernet 1/1 as a source port of the mirroring group, and
specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] mirroring-group 1 mirroring-port both
mirror
Use mirror to mirror traffic on a port for local port mirroring or remote port mirroring.
Use undo mirror to restore the default.
Syntax
mirror number number { all | in | out } to local-interface interface-type interface-number [ mac H-H-H ]
| remote-ip ip-address [ port port ]
undo mirror [ number number ]










