R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
305
[Sysname] mirroring-group 1 local
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] mirroring-group 1 monitor-port
Related commands
mirroring-group
mirroring-group monitor-port (system 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 from a mirroring group.
Syntax
mirroring-group group-id monitor-port interface-type interface-number
undo mirroring-group group-id monitor-port interface-type interface-number
Default
No monitor port is configured for a mirroring group.
Views
System 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.
interface-type interface-number: Specifies a port to be configured as the monitor port by its type and
number.
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 the monitor port.
Examples
# Create local mirroring group 1 and configure GigabitEthernet 2/1/1 as its monitor port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 monitor-port gigabitethernet 2/1/1
Related commands
mirroring-group