port-mirroring enable

Function

The port-mirroring enable command enables flow mirroring.

The undo port-mirroring enable command disables flow mirroring.

By default, flow mirroring is disabled on the Device.

Format

port-mirroring enable

undo port-mirroring enable

Parameters

None

Views

Traffic behavior view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

When refined control is required for the packets sent to the analyzer, you can use both mirroring and traffic classification. In this manner, only the packets that meet the specific conditions are mirrored, thus improving the efficiency of the packet analyzer.

Prerequisites

A traffic behavior is configured and the traffic behavior view is displayed.

Follow-up Procedure

There is no particular sequence required for configuring the observing port and observing port for the interface board and enabling the flow mirroring function. All these configurations, however, must be complete before implementing the mirroring function.

Example

# Enable flow mirroring for traffic behavior1.
<HUAWEI> system-view
[~HUAWEI] traffic behavior behavior1
[*HUAWEI-behavior-behavior1] port-mirroring enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >