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

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

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 Local Port Mirroring

Configuring Local Port Mirroring

After local port mirroring is configured, packets passing through mirrored ports are copied to a local monitoring device for analysis and monitoring.

Pre-configuration Tasks

Ensuring that the link layer protocol status of ports is Up.

Configuring a Local Observing Port

Context

NOTE:

In PPPoEoA and IPoEoA scenarios, only WAN-side ports can be used as observing ports.

In local port mirroring, an observing port is directly connected to a monitoring device and directly forwards the packets copied from a mirrored port to the monitoring device for analysis.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run observe-port interface interface-type interface-number

    A local observing port is configured.

    NOTE:
    • An observing port is dedicated to forwarding mirrored traffic. Do not configure other services on an observing port; otherwise, mirrored traffic and other service traffic interfere with each other.

    • If an Eth-Trunk is configured as a mirrored port, its member ports cannot be configured as mirrored ports. To configure a member port as a mirrored port, delete it from the Eth-Trunk first.
    • If a member port of an Eth-Trunk is configured as a mirrored port, the Eth-Trunk cannot be configured as a mirrored port. To configure the Eth-Trunk as a mirrored port, delete the member port from it first.

Configuring a Local Mirrored Port

Context

In local port mirroring, an observing port is directly connected to a monitoring device. The observing port forwards the packets that are copied from the mirrored port to the connected monitoring device for analysis.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Bind the mirrored port to the observing port.

    1. Run interface interface-type interface-number

      The interface view is displayed.

    2. Run mirror to observe-port { both | inbound | outbound } [ exclude-link-head ]

      The mirrored port is bound to the observing port.

      NOTE:
      • inbound: mirrors the packets that are received by the mirrored port to the observing port.

      • outbound: mirrors the packets that are sent by the mirrored port to the observing port.

      • both: mirrors the packets that are received and sent by the mirrored port to the observing port.

Checking the Configuration

Procedure

  • Run the display observe-port command to check the observing port.
  • Run the display mirror-port command to check the port mirroring configuration.
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 101894

Downloads: 337

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