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.


CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
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 1:1 Local Port Mirroring

Example for Configuring 1:1 Local Port Mirroring

Networking Requirements

As shown in Figure 10-4, the R&D department of a company communicates with the Internet through the router, and the server (monitoring device) is directly connected to the router.

The server is required to monitor traffic from the R&D department to the Internet.

Figure 10-4  Networking of local port mirroring

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure GE2/0/0 as the local observing port to forward mirrored packets to the server.
  2. Configure GE1/0/0 as the mirrored port to copy traffic from the R&D department to the Internet to the local observing port.


  1. Configure an observing port.

    # Configure GE2/0/0 on the router as the local observing port.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] observe-port interface gigabitethernet 2/0/0

  2. Configure a mirrored port.

    # Configure GE1/0/0 on the router as the mirrored port and configure GE1/0/0 to copy received packets to the local observing port.

    [Router] interface gigabitethernet 1/0/0
    [Router-GigabitEthernet1/0/0] mirror to observe-port inbound
    [Router-GigabitEthernet1/0/0] return

  3. Verify the configuration.

    # Check the configuration of the observing port.

    <Router> display observe-port
      Index    : 1                                                                  
      Interface: GigabitEthernet2/0/0                                               
      Used     : 0                                                                  

    # Check the configuration of the mirrored port.

    <Router> display mirror-port
        Mirror-port              Direction  Observe-dest                            
      1 GigabitEthernet1/0/0     Inbound    GigabitEthernet2/0/0                    

Configuration Files

  • Configuration file of the router

    sysname Router
     observe-port interface GigabitEthernet2/0/0
    interface GigabitEthernet1/0/0
     mirror to observe-port inbound
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 34151

Downloads: 196

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