< Home

port-mirroring (upgrade-compatible command)

Function

The port-mirroring command configures a mirroring behavior on an interface.

Format

port-mirroring to observe-port index

Parameters

Parameter

Description

Value

index

Specifies the index of a global observing interface.

The value is integer.

Views

Traffic behavior view

Default Level

3: Management level

Usage Guidelines

This command is available to aid upgrade compatibility. It can be run when it is entered in full.

Example

# Mirror traffic to observing interface with index 1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-traffic-behavior-b1] port-mirroring to observe-port 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.