R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
304
interface-list: Specifies a space-separated list of up to eight port items. Each item specifies a single port
or a port range in the form of interface-type interface-number 1 to interface-type interface-number 2. The
specified ports must be of the same type and on the same card. The interface number for
interface-number 2 must be equal to or greater than the interface number for interface-number 1.
both: Mirrors both received and sent packets on the specified ports.
inbound: Mirrors only received packets on the specified ports.
outbound: Mirrors only sent packets on the specified ports.
Usage guidelines
A port can belong to only one mirroring group.
Examples
# Create local mirroring group 1 to monitor the bidirectional traffic of GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-port gigabitethernet 2/1/1 both
Related commands
mirroring-group
mirroring-group monitor-port (interface view)
Use mirroring-group monitor-port to configure a port as the monitor port for a mirroring group.
Use undo mirroring-group monitor-port to remove the monitor port of a mirroring group.
Syntax
mirroring-group group-id monitor-port
undo mirroring-group group-id monitor-port
Default
No monitor port is configured for a mirroring group.
Views
Interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies a mirroring group by its ID in the range of 1 to 6. The specified mirroring group must
already exist.
Usage guidelines
Use a monitor port only for port mirroring. In this way, the data monitoring device can receive and
analyze only the mirrored traffic rather than a mix of mirrored traffic and correctly forwarded traffic.
Do not configure a port of an existing mirroring group as a monitor port.
Examples
# Create local mirroring group 1 and configure GigabitEthernet 2/1/1 as its monitor port.
<Sysname> system-view