< Home

mirroring to observe-port (traffic behavior view)

Function

The mirroring to observe-port command copies traffic that matches rules to observing ports.

The undo mirroring command cancels copying traffic that matches rules to observing ports.

By default, the switch does not copy traffic that matches rules to observing ports.

Format

mirroring to observe-port observe-port-index

undo mirroring

Parameters

Parameter

Description

Value

observe-port-index

Specifies the index of the observing port.

The specified observing port must exist.

Views

Traffic behavior view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In traffic mirroring, you can run the mirroring to observe-port command to copy traffic that matches rules to specified observing ports.

Prerequisites

Observing ports have been configured using the observe-port or observe-port command in the system view.

Precautions

On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, if selective QinQ, VLAN mapping, flow ID re-marking, 802.1p priority re-marking, or MAC address learning disabling is configured in a traffic behavior, traffic mirroring is not supported.

On the S5720-EI, S6720-EI, and S6720S-EI, if flow ID re-marking, re-marking of inner VLAN tags in QinQ packets, MAC address learning disabling, or redirection of packets to a VPN instance is configured in a traffic behavior, traffic mirroring is not supported.

Example

# Copy traffic that matches rules to observing ports with index 1.

<HUAWEI> system-view
[HUAWEI] observe-port 1 interface gigabitethernet 0/0/1
[HUAWEI] traffic behavior tb1
[HUAWEI-behavior-tb1] mirroring to observe-port 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >