port-mirroring to (traffic behavior view)

Function

The port-mirroring to command configures an observing port for interface-based flow mirroring.

The undo port-mirroring to command cancels an observing port for interface-based flow mirroring.

By default, no observing port is configured for interface-based flow mirroring.

Format

port-mirroring to { observe-index observe-index &<1-8> }

undo port-mirroring to { observe-index observe-index &<1-8> }

Parameters

Parameter Description Value
observe-index observe-index

Specifies the index of an observing port.

The value is an integer ranging from 1 to 255.

Views

Traffic behavior view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

To configure an observing port for interface-based flow mirroring, run the port-mirroring to command. Only the traffic matching the traffic policy is sent to the specified observing port.

Prerequisites

Flow mirroring has been configured in the traffic behavior view using the port-mirroring enable command.

Example

# Configure an observing port for interface-based flow mirroring.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] port-mirroring to observe-index 1 2 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >