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

257
Use undo mirroring-group mirroring-port to remove source ports from the mirroring group.
Syntax
mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound }
undo mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound }
Default
No source port is configured for any mirroring group.
Views
System view
Default command level
2: System level
Parameters
group-id: Specifies the number of a local or remote source group. The mirroring group specified by the
group-id argument must already exist.
mirroring-port-list: Specifies a list of source ports or port ranges to be assigned to or removed from the
mirroring group specified by group-id. You can specify up to eight single ports, port ranges, or
combinations of both for the list. A single port takes the form of interface-type interface-number. A port
range takes the form interface-type interface-number to interface-type interface-number, where the end
port number must be greater than the start port number. For example, you can specify up to eight
combinations of single ports and port ranges for the list like this: ethernet 1/1 ethernet 1/3 ethernet 1/5
ethernet 2/2 to ethernet 2/10 ethernet 3/1 ethernet 3/4 ethernet 3/6 to ethernet 3/10 ethernet 3/12.
both: Mirrors both inbound and outbound packets on the specified ports.
inbound: Mirrors only inbound packets on the specified ports.
outbound: Mirrors only outbound packets on the specified ports.
Usage guidelines
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group mirroring-port command matches the actual monitored direction specified earlier
in the mirroring-group mirroring-port command.
All MSR routers support mirroring inbound and outbound packets. The following matrix shows the value
ranges for the group-id argument:
MSR900 MSR93
X
MSR20-1
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
configure the mirroring group to monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-port ethernet 1/1 both
Related commands
mirroring-group