The port-mirroring instance pe-vid command configures mirroring on an EVC Layer 2 QinQ sub-interface.
The undo port-mirroring instance pe-vid command cancels the configuration.
By default, mirroring is not configured on an EVC Layer 2 QinQ sub-interface.
port-mirroring instance instance-name { inbound | outbound } pe-vid pe-vlan-id ce-vid ce-vlan-id-begin [ to ce-vlan-id-end ] identifier { none | pe-vid | ce-vid | pe-ce-vid } [ group group-name ]
undo port-mirroring instance instance-name { inbound | outbound } pe-vid pe-vlan-id ce-vid ce-vlan-id-begin [ to ce-vlan-id-end ]
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. |
- |
pe-vid | Multiple mirroring instances are created based on the outer tag value. |
- |
pe-vlan-id | Specifies the VLAN ID (outer VLAN tag value) on the PE. |
The value is an integer that ranges from 1 to 4094 . |
ce-vid | Multiple mirroring instances are created based on the inner tag value. For example, to mirror packets with ce-vid ranging from 1 to 5, if identifier ce-vid is configured in the command, five mirroring instances are created, with each for one ce-vid. |
- |
ce-vlan-id-begin | Specifies the start VLAN ID (inner VLAN tag value) on the CE. |
The value is an integer that ranges from 1 to 4094 . |
ce-vlan-id-end | Specifies the end VLAN ID (inner VLAN tag value) on the CE. |
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 | Only one mirroring instance is created for all packets on the mirrored port. |
- |
pe-ce-vid | Multiple mirroring instances are created based on the outer and inner tag values. |
- |
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. |
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 QinQ, packets are copied to the observing port based on the inner tag value, outer tag value, or inner and outer tag values.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 QinQ.
An EVC sub-interface can function only as a mirrored port, not an observing port.<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 qinq vid 1 ce-vid 2 [*HUAWEI-GigabitEthernet0/1/0.1] port-mirroring instance test inbound pe-vid 1 ce-vid 2 identifier pe-ce-vid group 22