mirror instance location

Function

The mirror instance location command creates a port mirroring instance and displays the mirroring instance view.

The undo mirror instance location command deletes a port mirroring instance.

By default, no mirroring instance is configured on the device.

Format

mirror instance instance-name location

undo mirror instance instance-name

Parameters

Parameter Description Value
instance-name

Specifies the name of a mirroring instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

In an EVC scenario, to mirror and analyze traffic on an EVC interface or a bridge domain, create a mirrored port. You can create a mirrored port in common mode or in mirroring instance mode.

  • To create a mirrored port in common mode, run the port-mirroring { inbound | outbound } command.
  • Before creating a mirrored port in mirroring instance mode, run the mirror instance location command to create a mirroring instance and run the port-mirroring instance { inbound | outbound } command to apply the mirroring instance to an interface.

    The differences between the two modes are as follows:
  • The common mode supports interface-based mirroring, and the mirroring instance mode supports only Board-based mirroring.
  • CAR can be implemented for mirrored traffic in both modes. In common mode, CAR is implemented on each interface. In mirroring instance mode, a shared CAR can be configured in a mirroring instance and applies to different interfaces bound to the mirroring instance, which simplifies configuration and optimizes CAR resource usage.
  • A shared instance can be configured for multiple interfaces. To be specific, multiple interfaces can share a mirroring instance. This feature allows more interfaces to support port mirroring when the mirroring specification is insufficient.

Precautions

After a mirroring instance is deleted, all configurations in the mirroring instance will be deleted.

Example

# Create mirroring instance 1 and enter the mirroring instance view.
<HUAWEI> system-view
[~HUAWEI] mirror instance 1 location
[*HUAWEI-mirror-instance-1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >