< Home

display port-mirroring

Function

The display port-mirroring command displays the mirroring configuration.

Format

display port-mirroring

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After observing ports and mirrored ports are configured on the switch, you can run the display port-mirroring command to check detailed mirroring configuration on the switch.

Example

# Display the mirroring configuration.

<HUAWEI> display port-mirroring
 ----------------------------------------------------------------------
  Observe-port 1 : GigabitEthernet0/0/1
  Observe-port 2 : GigabitEthernet0/0/2
  Observe-port 3 : GigabitEthernet0/0/3
  Observe-port 4 : GigabitEthernet0/0/4
  ----------------------------------------------------------------------
  Port-mirror:
  ----------------------------------------------------------------------
       Mirror-port               Direction  Observe-port
  ----------------------------------------------------------------------
  1    GigabitEthernet0/0/15     Inbound    Observe-port 1
  ----------------------------------------------------------------------
  Stream-mirror:
  ----------------------------------------------------------------------
       Behavior                  Direction  Observe-port
  ----------------------------------------------------------------------
  1    b1                        -          Observe-port 2
  ----------------------------------------------------------------------
  Vlan-mirror:
  ----------------------------------------------------------------------
  Mirror-vlan              Direction     Observe-port
  ----------------------------------------------------------------------
  10                       Inbound       Observe-port 3
  ----------------------------------------------------------------------
  Mac-mirror:
  ----------------------------------------------------------------------
  Mirror-mac       Vlan    Direction     Observe-port
  ----------------------------------------------------------------------
  0001-0001-0001   10      Inbound       Observe-port 4
  ----------------------------------------------------------------------
Table 1 Description of the display port-mirroring command output

Item

Description

Port-mirror

Port mirroring configuration.

Mirror-port

Mirrored port. This parameter is configured using the port-mirroring to observe-port command.

Direction

Direction of mirrored packets:
  • Inbound

  • Outbound

This parameter is configured using the port-mirroring to observe-port command.

Observe-port

Observing port to which mirrored packets are sent. This parameter is configured using the observe-port or observe-port command.

Stream-mirror

Traffic mirroring configuration.

Behavior

Traffic behavior of traffic mirroring.

  • In MQC-based traffic mirroring, this parameter is configured using the mirroring to observe-port command.
  • In ACL-based traffic mirroring, this parameter is configured using the traffic-mirror or traffic-mirror command.

Vlan-mirror

VLAN mirroring configuration.

Mirror-vlan

VLAN ID in VLAN mirroring. This parameter is configured using the mirroring to observe-port command.

Mac-mirror

MAC address mirroring configuration.

Mirror-mac

MAC address in MAC address mirroring. This parameter is configured using the mac-mirroring command.

Vlan

VLAN in which MAC address mirroring is used.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >