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

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 CE series switches running V100R001C00 or later.

Networking Requirements

As shown in Figure 2-44, 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-44 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.

Procedure

  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
    #
    return
    
Download
Updated: 2019-04-03

Document ID: EDOC1000039339

Views: 105182

Downloads: 7463

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