313
Related commands
mirroring-group
mirroring-group monitor-port (system view)
Use mirroring-group monitor-port to configure the monitor ports for a mirroring group.
Use undo mirroring-group monitor-port to remove the monitor ports 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 number. The specified mirroring group must already exist.
The value range for this argument is 1 to 4.
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
You can configure monitor ports only for local mirroring groups and remote destination groups.
Do not enable the spanning tree feature on the monitor port of a mirroring group.
For a Layer 2 interface configured as the monitor port of a mirroring group, do not configure its
member ports as source ports of the mirroring group.
A Layer 2 interface cannot be configured as the monitor port for a Layer 2 remote destination group.
Use a monitor port only for port mirroring, so the data monitoring device receives only the mirrored
traffic.
The member port of an existing mirroring group cannot be configured as a monitor port.
The member port of an aggregate interface cannot be configured as a monitor port.
Examples
# Create local mirroring group 1 and configure GigabitEthernet 1/0/1 as its monitor port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 monitor-port gigabitethernet 1/0/1
# Create remote destination group 2 and configure GigabitEthernet 1/0/2 as its monitor port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-destination
[Sysname] mirroring-group 2 monitor-port gigabitethernet 1/0/2
Related commands
mirroring-group