port-mirroring instance

Function

The port-mirroring instance command configures mirroring on an EVC Layer 2 sub-interface or a bridge domain.

The undo port-mirroring instance command cancels the configuration.

By default, mirroring is not configured on an EVC Layer 2 sub-interface or a bridge domain.

Format

port-mirroring instance instance-name { inbound | outbound } [ group group-name ]

undo port-mirroring instance instance-name { inbound | outbound }

Parameters

Parameter Description Value
instance-name

Specifies the name of a mirroring instance.

The value is a string of 1 to 31 case-insensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

inbound

Indicates mirroring for upstream traffic.

-

outbound

Indicates mirroring for downstream traffic.

-

group group-name

Indicates that packets on multiple EVC Layer 2 sub-interfaces share one mirroring instance. This configuration allows users to mirror packets on more interfaces when mirroring instance resources are insufficient.

Different EVC Layer 2 sub-interfaces use the same mirroring instance name. If group is configured in the command, packets on these interfaces trigger the generation of multiple mirroring instances, consuming more instance resources.

The value is a string of 1 to 31 case-insensitive characters, spaces not supported.

Views

EVC view of a 10GE interface, EVC view of an Eth-Trunk interface, EVC view of an Ethernet interface, EVC view of a GE interface, Bridge domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

In an EVC scenario, to mirror packets on an EVC Layer 2 sub-interface, specify a mirrored port on which the packets are copied to an observing port. Based on different encapsulation types of an EVC Layer 2 sub-interface, specific packets on the mirrored port are copied to the observing port.

If the encapsulation type of an EVC Layer 2 sub-interface is Dot1q, QinQ, Untag or Default, all packets on the sub-interface are copied to the observing port.

Configuration Impact

After mirroring is enabled, specific packets will be copied to the observing port, affecting the processing of normal service packets.

Precautions

An EVC sub-interface can function only as a mirrored port, not an observing port.

Example

# Configure mirroring for upstream traffic on GE 0/1/0.1 whose encapsulation type is Untag.
<HUAWEI> system-view
[~HUAWEI] mirror instance a location
[*HUAWEI-mirror-instance-a] quit
[*HUAWEI] interface GigabitEthernet0/1/0.1 mode l2
[*HUAWEI-GigabitEthernet0/1/0.1] encapsulation untag
[*HUAWEI-GigabitEthernet0/1/0.1] port-mirroring instance a inbound
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >