172
Configuration prerequisites
Before configuring Layer 2 remote port mirroring, make sure that you have created static VLANs for the
remote probe VLAN.
CAUTION:
The remote source mirrorin
roup on the source device and the remote destination mirrorin
roup on
the destination device must use the same remote probe VLAN.
Configuring a remote source mirroring group (on the source
device)
To configure a remote source mirroring group, make the following configurations on the source device.
Creating a remote source mirroring group
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Create a remote source
mirroring group.
mirroring-group group-id remote-source
Required.
By default, no mirroring
group exists.
Configuring mirroring ports for the remote source mirroring group
You can configure a list of mirroring ports for a mirroring group at a time in system view, or assign only
the current port to it as a mirroring port in interface view. To assign multiple ports to the mirroring group
as mirroring ports in interface view, repeat the step.
• Configuring mirroring ports in system view
To do…
Use the command… Remarks
1. Enter system view.
system-view —
2. Configure mirroring ports for
the remote source mirroring
group.
mirroring-group group-id
mirroring-port mirroring-port-list
{ both | inbound | outbound }
Required.
By default, no mirroring port is
configured for a mirroring group.
• Configuring a mirroring port in interface view
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enter interface view.
interface interface-type interface-
number
—
3. Configure the current port as
a mirroring port.
[ mirroring-group group-id ]
mirroring-port { both | inbound |
outbound }
Required.
By default, a port does not serve
as a mirroring port for any
mirroring group.