No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Port Mirroring

Configuring Port Mirroring

In port mirroring, packets passing through mirrored ports are copied and then sent to specified observing ports for analysis and monitoring. Port mirroring is classified into local port mirroring and Layer 2 remote port mirroring based on observing ports. For details about configuring local observing ports and Layer 2 remote observing ports, see Configuring an Observing Port. The following example configures local port mirroring. For details about configuration examples, see "Typical Mirroring Configuration" in the Typical Configuration Examples - Typical Network Management and Monitoring Configuration.

Configuring 1:1 Port Mirroring

You can copy packets on a mirrored port to an observing port. For example, copy incoming packets (received packets) on mirrored port GE2/0/1 to observing port GE1/0/1. GE1/0/1 is directly connected to a monitoring device.

<HUAWEI> system-view
[HUAWEI] observe-port 1 interface gigabitethernet 1/0/1
[HUAWEI] interface gigabitethernet 2/0/1
[HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 1 inbound

Configuring 1:N Port Mirroring

You can copy packets on one mirrored port to N observing ports. For example, copy incoming packets (received packets) on mirrored port GE2/0/1 to observing ports GE1/0/1 through GE1/0/3. These observing ports are directly connected to monitoring devices.

  • Configure observing ports one by one.

    <HUAWEI> system-view
    [HUAWEI] observe-port 1 interface gigabitethernet 1/0/1
    [HUAWEI] observe-port 2 interface gigabitethernet 1/0/2
    [HUAWEI] observe-port 3 interface gigabitethernet 1/0/3
    [HUAWEI] interface gigabitethernet 2/0/1
    [HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 1 inbound
    [HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 2 inbound
    [HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 3 inbound
  • Configure observing ports in a batch (only in V200R005 and later versions).

    <HUAWEI> system-view
    [HUAWEI] observe-port 1 interface-range gigabitethernet 1/0/1 to gigabitEthernet 1/0/3
    [HUAWEI] interface gigabitethernet 2/0/1
    [HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 1 inbound

Configuring N:1 Port Mirroring

You can copy packets on N mirrored ports to one observing port. For example, copy incoming packets (received packets) on mirrored ports GE2/0/1 through GE2/0/3 to observing port GE1/0/1. GE1/0/1 is directly connected to a monitoring device.

<HUAWEI> system-view
[HUAWEI] observe-port 1 interface gigabitethernet 1/0/1
[HUAWEI] interface gigabitethernet 2/0/1
[HUAWEI-GigabitEthernet2/0/1] port-mirroring to observe-port 1 inbound
[HUAWEI-GigabitEthernet2/0/1] quit
[HUAWEI] interface gigabitethernet 2/0/2
[HUAWEI-GigabitEthernet2/0/2] port-mirroring to observe-port 1 inbound
[HUAWEI-GigabitEthernet2/0/2] quit
[HUAWEI] interface gigabitethernet 2/0/3
[HUAWEI-GigabitEthernet2/0/3] port-mirroring to observe-port 1 inbound
[HUAWEI-GigabitEthernet2/0/3] quit
Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 90808

Downloads: 12222

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next