NOTE:
For more information about the port access vlan, port trunk permit vlan, and port hybrid vlan
commands, see
Configuring Layer 3 remote port mirroring
Layer 3 remote port mirroring configuration task list
To configure Layer 3 remote port mirroring, you must create a local mirroring group on the source device
as well as on the destination device, and configure source ports/CPUs and the monitor port for each
mirroring group. The source and destination devices are connected by a tunnel. If an intermediate device
exists, configure a unicast routing protocol on the intermediate device to make sure that the source device
can reach the destination device at Layer 3.
On the source device, you must configure the ports/CPUs you want to monitor as the source
•
ports/CPUs, and configure the tunnel interface as the monitor port.
On the destination device, you must configure the physical port corresponding to the tunnel
•
interface as the source port, and configure the port that connects the data monitoring device as the
monitor port.
Complete these tasks to configure Layer 3 remote port mirroring:
Task
Configuring the source
device
Configuring the
destination device
Configuration prerequisites
Create a tunnel interface and a GRE tunnel that connect the source and destination devices.
Configuring local mirroring groups
Configure a local mirroring group on the source device and on the destination device separately.
Follow these steps to create a local mirroring group (on the source or destination device):
To do...
Enter system view
Create a local mirroring
group
Layer 2—LAN Switching Command Reference
Configuring local mirroring groups
Configuring source ports for a local mirroring group
Configuring source CPUs for a local mirroring group
Configuring the monitor port for a local mirroring group
Configuring local mirroring groups
Configuring source ports for a local mirroring group
Configuring the monitor port for a local mirroring group
Use the command...
system-view
mirroring-group group-id
local
.
Remarks
—
Required
By default, no local mirroring group exists on a device.
97
Remarks
Required
Perform at least one
configuration.
Required
Required
Required
Required