port-mirroring instance (dot1q)

Function

The port-mirroring instance vid command configures mirroring on an EVC Layer 2 Dot1q sub-interface.

The undo port-mirroring instance vid command cancels the configuration.

By default, mirroring is not configured on an EVC Layer 2 Dot1q sub-interface.

Format

port-mirroring instance instance-name { inbound | outbound } vid vlan-id-begin [ to vlan-id-end ] identifier { none | vid } [ group group-name ]

undo port-mirroring instance instance-name { inbound | outbound } vid vlan-id-begin [ to vlan-id-end ]

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.

-

vid

Specifies the VLAN ID.

-

vlan-id-begin

Specifies the start VLAN ID.

The value is an integer that ranges from 1 to 4094 .

vlan-id-end

Specifies the end VLAN ID.

The value is an integer that ranges from 1 to 4094 .

identifier

Indicates the mode of distinguishing mirroring instances. This parameter applies to the scenario where mirroring instances are not shared. If identifier is not configured in the command, all packets on the mirrored port are mirrored.

The keyword meanings are as follows:

  • none: All packets on the interface share one mirroring instance.
  • vid: Mirroring instances are distinguished based on the tag value.
none

Only one mirroring instance is created for all packets on the mirrored port.

-

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

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 Layer2 sub-interface, specify a mirrored port on which the packets are copied to an observing port. Based on different encapsulation types of an EVC Layer2 sub-interface, specific packets on the mirrored port are copied to the observing port.

If the encapsulation type of an EVC Layer2 sub-interface is dot1q, packets are copied to the observing port based on the VLAN range.

Configuration Impact

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

Precautions

The command only support When the encapsulation type of an EVC Layer 2 sub-interface is dot1q.

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 dot1q.
<HUAWEI> system-view
[~HUAWEI] mirror instance test location
[*HUAWEI-mirror-instance-test] quit
[*HUAWEI] interface GigabitEthernet0/1/0.1 mode l2
[*HUAWEI-GigabitEthernet0/1/0.1] encapsulation dot1q vid 1 to 200
[*HUAWEI-GigabitEthernet0/1/0.1] port-mirroring instance test inbound vid 1 to 10 identifier vid
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >