160
• Assign a list of source ports to the mirroring group in system view.
• Assign a port to the mirroring group as a source port in interface view.
To assign multiple ports to the mirroring group as source ports in interface view, repeat the
operation.
Configuration restrictions and guidelines
When you configure source ports for a local mirroring group, follow these restrictions and guidelines:
• A mirroring group can contain multiple source ports.
• A source port cannot be used as a reflector port, egress port, or monitor port.
• A port can be assigned to different mirroring groups as follows:
ï‚¡ When acting as a source port for unidirectional mirroring, the port can be assigned to up to
four mirroring groups.
ï‚¡ When acting as a source port for bidirectional mirroring, the port can be assigned to up to
two mirroring groups.
ï‚¡ When acting as a source port for unidirectional and bidirectional mirroring, the port can be
assigned to up to three mirroring groups. One mirroring group is used for bidirectional
mirroring and the other two for unidirectional mirroring.
Configuring source ports in system view
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.
Configuring source ports in interface view
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure
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
To configure the monitor port for a mirroring group, use one of the following methods:
• Configure the monitor port for the mirroring group in system view.
• Assign a port to the mirroring group as the monitor port in interface view.
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.