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


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


Typical Configuration Examples

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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).
Example for Configuring Local Port Mirroring

Example for Configuring Local Port Mirroring

Applicable Products and Versions

This example applies to all models and versions.

Networking Requirements

As shown in Figure 2-46, the administrative department of a company communicates with the Internet through the SwitchA, and the server (monitoring device) is directly connected to the SwitchA.

The server is required to monitor traffic from the administrative department to the Internet.

Figure 2-46 Networking diagram of local port mirroring

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure 10GE1/0/2 on SwitchA as the local observing port so that Server can receive mirrored packets.
  2. Configure 10GE1/0/1 on SwitchA as the mirrored port to monitor packets passing through the mirrored port.


  1. Configure an observing port.

    # Configure 10GE1/0/2 on SwitchA as the local observing port.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] observe-port 1 interface 10ge 1/0/2
    [*SwitchA] commit

  2. Configure a mirrored port.

    # Configure 10GE1/0/1 on SwitchA as the mirrored port to monitor packets sent from HostA.

    [~SwitchA] interface 10GE 1/0/1
    [~SwitchA-10GE1/0/1] port-mirroring observe-port 1 inbound
    [*SwitchA-10GE1/0/1] commit
    [~SwitchA-10GE1/0/1] return

Verifying the Configuration

# Check the port mirroring configuration.

<SwitchA> display port-mirroring
  Observe port mirroring:
  MirroringPort         Direction        ObservePort : Interface
  10GE1/0/1             Inbound                    1 : 10GE1/0/2

Configuration Files

  • Configuration file of SwitchA

    sysname SwitchA
    observe-port 1 interface 10GE1/0/2
    interface 10GE1/0/1
     port-mirroring observe-port 1 inbound
Updated: 2019-10-14

Document ID: EDOC1000039339

Views: 150295

Downloads: 7860

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