port-mirroring slice-size

Function

The port-mirroring slice-size command configures the length of packet for mirrored traffic.

The undo port-mirroring command deletes the configuration of packet length for mirrored traffic.

By default, no function of packet length truncation for mirrored traffic is configured on the Device.

Format

port-mirroring slice-size slice-size-value

undo port-mirroring slice-size [ slice-size-value ]

Parameters

Parameter Description Value
slice-size-value

Specifies the length of mirrored packets.

The value is an integer that ranges from 64 to 9600, in bytes.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10G LAN interface view, 10G WAN interface view, 25GE sub-interface view, 25GE interface view, 40GE sub-interface view, 40GE interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE-Trunk member interface view, GE optical interface view, GE sub-interface view, Traffic behavior view, Mirroring instance view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

In heavy-traffic scenarios, if the original packet is large and you only need to mirror packets of a specified length, run this command to specify a packet length for mirrored traffic. You can use this command and the user-defined offset mirroring function to obtain specific packet segments, reducing the bandwidth used by the observing port and improving service performance.

Prerequisites

Before running this command on an interface, you must run the port-mirroring or port-mirroring inbound pe-vid ce-vid command.

Precautions

After the port-mirroring slice-size configuration is run on interface, if the port-mirroring or port-mirroring inbound pe-vid ce-vid configurations has been deleted, the configuration of port-mirroring slice-size will also be deleted.

Example

# Configure packets length truncation for mirrored traffic in mirror instance1.
<HUAWEI> system-view
[~HUAWEI] mirror instance instance1 location
[*HUAWEI-mirror-instance-instance1] port-mirroring slice-size 256
# Configure packets length truncation for mirrored traffic on interface GigabitEthernet 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] port-mirroring inbound
[*HUAWEI-GigabitEthernet0/1/0] port-mirroring slice-size 256
# Configure packets length truncation for mirrored traffic in traffic behavior1.
<HUAWEI> system-view
[~HUAWEI] traffic behavior behavior1
[*HUAWEI-behavior-behavior1] port-mirroring enable
[*HUAWEI-behavior-behavior1] port-mirroring slice-size 256
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >