176
• A mirroring group can contain multiple source ports.
• A port can act as a source port for multiple mirroring groups, but the port cannot be a reflector port,
egress port, or monitor port at the same time.
Configuration procedure
To configure source ports in system view:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure source ports for the
specified local mirroring
group.
mirroring-group group-id
mirroring-port interface-list { both |
inbound | outbound }
By default, no source port is
configured for a local mirroring
group.
To configure source ports in interface view:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Configure the port as a source
port for the specified local
mirroring group.
mirroring-group group-id
mirroring-port { both | inbound |
outbound }
By default, a port does not act as a
source port for any local mirroring
group.
Configuring the monitor port for the local mirroring group
You can configure the monitor port for a mirroring group in system view, or assign a port to a mirroring
group as the monitor port in interface view. The two modes lead to the same result.
Configuration restrictions and guidelines
When you configure the monitor port for a local mirroring group, follow these restrictions and guidelines:
• Do not enable the spanning tree feature on the monitor port.
• When a Layer 2 aggregate interface is configured as the monitor port, do not configure its member
interfaces as source ports.
• A mirroring group contains only one monitor port.
• Use a monitor port for port mirroring, so the data monitoring device receives and analyzes only the
mirrored traffic.
Configuration procedure
To configure the monitor port in system view:
Ste
Command
Remarks
1. Enter system view.
system-view N/A