408
mirroring-group monitor-port (interface view)
Use
mirroring-group monitor-port
to configure a port as a monitor port for a mirroring group.
Use
undo mirroring-group monitor-port
to restore the default.
Syntax
mirroring-group group-id monitor-port
undo
mirroring-group group-id monitor-port
Default
A port does not act as a monitor port for any mirroring groups.
Views
Interface view
Predefined user roles
network-admin
Parameters
group-id
: Specifies an existing mirroring group by its ID in the range of 1 to 6.
Usage guidelines
You can configure monitor ports only for local mirroring groups.
Use a monitor port only for port mirroring, so the data monitoring device receives and analyzes only
the mirrored traffic.
Do not configure a port of an existing mirroring group 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] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mirroring-group 1 monitor-port
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