port-mirroring pe-vid

Function

The port-mirroring pe-vid command configures mirroring based on VLAN segments for inner and outer VLAN tags on a user-VLAN sub-interface.

The undo port-mirroring pe-vid command deletes the configuration.

By default, no mirrored port is configure on the Device.

Format

port-mirroring { inbound | outbound } pe-vid low-vid [ to high-vid ] ce-vid ce-vlan-id-begin [ to ce-vlan-id-end ]

undo port-mirroring { inbound | outbound } pe-vid low-vid [ to high-vid ] ce-vid ce-vlan-id-begin [ to ce-vlan-id-end ]

Parameters

Parameter Description Value
inbound

Indicates incoming packets, to be specific, the packets received by the mirrored port.

-

outbound

Indicates outgoing packets, to be specific, the packets sent by the mirrored port.

-

pe-vid low-vid

Specifies the outer start VLAN ID of a double-tagged VLAN packet.

The value is an integer ranging from 1 to 4094.

to high-vid

Specifies the outer end VLAN ID of a double-tagged VLAN packet.

The value is an integer ranging from 1 to 4094.

to ce-vlan-id-end

Specifies the inner end VLAN ID of a double-tagged VLAN packet.

The value is an integer ranging from 1 to 4094.

ce-vid ce-vlan-id-begin

Specifies the inner start VLAN ID of a double-tagged VLAN packet.

The value is an integer ranging from 1 to 4094.

Views

100ge sub-interface view, 10GE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

If traffic on the BRAS's user-VLAN or anyother sub-interface, through which VLAN users access the IP core network, needs to be monitored and analyzed, mirroring can be configured for user traffic on the user-VLAN or anyother sub-interface based on the inner and outer VLAN ID.

Prerequisites

No other configuration is required before you run the port-mirroring command. To implement the mirroring function, you must configure an observing port and specify an observing port on an interface board.

Precautions

The same interface can serve as either the mirrored port or the observing port.

The observing port and mirrored port cannot be configured on the main interface or sub-interfaces of the same Eth-Trunk interface.

You can specify the vlan parameter on a Layer 2 interface so that only packets with a specified VLAN ID are mirrored. When a Layer 2 interface is configured with the access type and is added to a VLAN using the port default vlan command, if only packets with a specified VLAN ID need to be mirrored, the original packets on the mirrored port do not carry any VLAN ID, but the mirrored packets sent by the observing carry one VLAN ID.

Example

# Configure mirroring based on VLAN segments for inner and outer VLAN tags on GE0/1/0.1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] user-vlan any-other
[*HUAWEI-GigabitEthernet0/1/0.1] port-mirroring inbound pe-vid 10 ce-vid 20 to 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >