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

Troubleshooting Guide

CloudEngine 16800, 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).
How Can I Configure Traffic Mirroring?

How Can I Configure Traffic Mirroring?

Perform the following operations to configure traffic mirroring:
  1. Configure an observing port.

    1. Run the system-view command to enter the system view.

    2. Run the observe-port [ observe-port-index ] interface interface-type interface-number command to configure a local observing port.

      To configure multiple observing ports, run the preceding commands multiple times.

    3. Run the commit command to commit the configuration.

  2. Configure a traffic classifier.

    1. Run the system-view command to enter the system view.

    2. Run the traffic classifier classifier-name [ type { and | or } ] command to create a traffic classifier and enter the traffic classifier view or enter the existing traffic classifier view.

    3. Run the if-match match command to configure a matching rule in the traffic classifier.

    4. Run the commit command to commit the configuration.

  3. Configure a traffic behavior.

    1. Run the system-view command to enter the system view.

    2. Run the traffic behavior behavior-name command to create a traffic behavior.

    3. Run the mirroring observe-port observe-port-index &<1-8> command to mirror traffic matching the rule to the specified observing port.

      Only the CE12800, CE6870EI, and CE6875EI support a maximum of eight observing port indexes specified in the command.

      Starting from V200R019C00, switches except the CE12800E configured with ED-E, EG-E, or EGA-E series cards, CE12800, CE16800, CE6875EI, CE6870EI, CE6810LI, CE6880EI, and CE5800 support a maximum of four observing port indexes specified in the command.

    4. Run the commit command to commit the configuration.

  4. Configure a traffic policy.

    1. Run the system-view command to enter the system view.

    2. Run the traffic policy policy-name command to create a traffic policy.

    3. Run the classifier classifier-name behavior behavior-name command to configure a traffic behavior for the specified traffic classifier in the traffic policy. That is, bind the traffic classifier and traffic behavior to the traffic policy.

    4. Run the commit command to commit the configuration.

  5. Apply the traffic policy.

    Among CloudEngine , 8800, 7800, 6800, and 5800 series switches, only the CE6870EI, CE6875EI, CE6880EI and CE5880EI allow applying a traffic policy in the outbound direction, and the CE6880EI and CE6875EI support this function since V200R003C00.

    • Apply the traffic policy to an interface.

      1. Run the system-view command to enter the system view.

      2. Run the interface interface-type interface-number command to enter the interface view.

      3. Run the traffic-policy policy-name { inbound | outbound } command to apply the traffic policy to the interface.

      4. Run the commit command to commit the configuration.

    • Apply the traffic policy to a VLAN.

      1. Run the system-view command to enter the system view.

      2. Run the vlan vlan-id command to enter the VLAN view.

      3. Run the traffic-policy policy-name { inbound | outbound } command to apply the traffic policy to the VLAN.

      4. Run the commit command to commit the configuration.

    • Apply the traffic policy globally or to a specified board.

      1. Run the system-view command to enter the system view.

      2. Run the traffic-policy policy-name global [ slot slot-id ] { inbound | outbound } command to apply the traffic policy globally or to a specified board.

      3. Run the commit command to commit the configuration.

In Figure 22-111, HostA connects to SwitchA through 10GE1/0/1, and the server directly connects to 10GE1/0/2 on SwitchA. The server needs to monitor packets that carry 802.1p priority 6 and are sent from HostA.
Figure 22-111 Local traffic mirroring networking
<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] observe-port 1 interface 10ge 1/0/2      //Configure an observing port.
[*SwitchA] commit
[~SwitchA] traffic classifier c1      //Configure a traffic classifier.
[*SwitchA-classifier-c1] if-match 8021p 6      //Define a matching rule in the traffic classifier.
[*SwitchA-classifier-c1] commit
[~SwitchA-classifier-c1] quit
[~SwitchA] traffic behavior b1      //Configure a traffic behavior.
[*SwitchA-behavior-b1] mirroring observe-port 1      //Mirror traffic that matches the rule to the observing port.
[*SwitchA-behavior-b1] commit
[~SwitchA-behavior-b1] quit
[~SwitchA] traffic policy p1      //Configure a traffic policy.
[*SwitchA-trafficpolicy-p1] classifier c1 behavior b1      //Bind the traffic classifier and traffic behavior to the traffic policy.
[*SwitchA-trafficpolicy-p1] commit
[~SwitchA-trafficpolicy-p1] quit
[~SwitchA] interface 10ge 1/0/1
[~SwitchA-10GE1/0/1] traffic-policy p1 inbound      //Apply the traffic policy to the inbound direction of 10GE1/0/1.
[*SwitchA-10GE1/0/1] commit
Translation
Download
Updated: 2020-01-07

Document ID: EDOC1000060766

Views: 612188

Downloads: 2956

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next