
97
NOTE:
For more information about the
port access vlan
,
port trunk permit vlan
, and
port hybrid vlan
commands, see
Layer 2—LAN Switching Command Reference.
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 Remarks
Configuring local mirroring groups
Required
Configuring source ports for a local mirroring group
Configuring source CPUs for a local mirroring group
Perform at least one
configuration.
Configuring the source
device
Configuring the monitor port for a local mirroring group
Required
Configuring local mirroring groups
Required
Configuring source ports for a local mirroring group
Required
Configuring the
destination device
Configuring the monitor port for a local mirroring group
Required
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…
Use the command…
Remarks
Enter system view
system-view
—
Create a local mirroring
group
mirroring-group
group-id
local
Required
By default, no local mirroring group exists on a device.