port-observing dest-mac

Function

The port-observing dest-mac command configures the destination MAC address for mirrored packets on the observing port.

The undo port-observing dest-mac command cancels the destination MAC address for mirrored packets on the observing port.

By default, no destination MAC address is configured for mirrored packets on the observing port.

Format

port-observing dest-mac dest-mac-address

undo port-observing dest-mac dest-mac-address

Parameters

Parameter Description Value
dest-mac-address

Specifies a destination MAC address.

The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0. If an H contains less than 4 bits, 0s are padded ahead. For example, if an H is e0, it is displayed as 00e0 in the MAC address.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10G LAN interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, Layer 2 Eth-Trunk 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. 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.

This command is used to configure the destination MAC address for mirrored packets on the observing port.

If this command is required on the observing port, the port-mirroring without-linklayer-header command must be configured on the corresponding mirrored port to configure the mirrored port to remove Layer 2 headers from packets.

Prerequisites

An interface has been configured as the observing port.

Precautions

The port-observing dest-mac and port-observing pop-label commands are mutually exclusive.

Example

# Configure the destination MAC address 00e0-fc12-3456 for mirrored packets on GE 0/1/8.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[~HUAWEI-GigabitEthernet0/1/0] port-mirroring inbound
[*HUAWEI-GigabitEthernet0/1/0] port-mirroring without-linklayer-header
[*HUAWEI-GigabitEthernet0/1/0] commit
[~HUAWEI-GigabitEthernet0/1/0] quit
[~HUAWEI] interface GigabitEthernet0/1/8
[~HUAWEI-GigabitEthernet0/1/8] port-observing observe-index 1
[*HUAWEI-GigabitEthernet0/1/8] port-observing dest-mac 00e0-fc12-3456
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >