port-mirroring without-linklayer-header

Function

The port-mirroring without-linklayer-header command configures a mirrored port to mirror packets from Layer 3 headers.

The undo port-mirroring without-linklayer-header command configures a mirrored port to mirror packets from Layer 2 headers.

By default, a mirrored port mirrors packets from Layer 2 headers.

Format

port-mirroring without-linklayer-header

undo port-mirroring without-linklayer-header

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10G LAN interface view, 10G WAN interface view, 40GE sub-interface view, 40GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE-Trunk member interface view, GE optical interface view, GE sub-interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

The command can also be used in SIG mirroring scenarios. When the port mirroring function is configured, the SIG imports traffic to the mirrored port and copies the traffic into multiple flows using the port mirroring function. The mirrored port is configured to mirror packets from Layer 2 or Layer 3 headers. After mirrored packets are sent to the observing port, the observing port removes Layer 2 headers of the original packets and encapsulates the specified destination MAC address into the packets for subsequent forwarding.

After this command is configured on the mirrored port, the port-observing observe-index without-filter command must be configured on the observing port.

Prerequisites

The mirrored port has been configured so that the port-mirroring without-linklayer-header command can take effect.

Precautions

Do not configure an interface as both an observing port and a mirrored port.

When the port-mirroring without-linklayer-header command is configured on the mirrored port and the port-observing with-linker-header command is configured on the observing port, the port-mirroring without-linklayer-header command on the mirrored port takes effect.

After this command is configured, the corresponding observing port does not support the port-observing pop-label command.

This command is not supported in flow mirroring.

Example

# Configure GE 0/1/0 to mirror packets from Layer 3 headers.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[~HUAWEI-GigabitEthernet0/1/0] port-mirroring inbound
[*HUAWEI-GigabitEthernet0/1/0] port-mirroring without-linklayer-header
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >