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

S12700 V200R011C10 Configuration Guide - Network Management and Monitoring

This document provides the configurations of network management and monitoring features supported by the product, including SNMP, RMON and RMON2, LLDP, Performance Management, iPCA, NQA, Service Diagnosis, Mirroring, Packet Capture, Traffic Distribution, NetStream, sFlow, and TWAMP Light.
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 MQC-based Remote Traffic Mirroring

Configuring MQC-based Remote Traffic Mirroring

Configuration Process

No. Task Remarks
1 Configure remote observing ports. -
2 Create a traffic classifier.
  • Tasks 2 and 3 can be performed in any sequence.
  • Task 2 can be performed multiple times. That is, you can bind multiple traffic classifiers to a traffic policy to mirror the packets that match these traffic classifiers.
3 Configure a traffic behavior and define traffic mirroring in the traffic behavior.
4 Configure a traffic policy. -
5 Apply the traffic policy.
  • Task 5 can be performed multiple times in different VLANs or interfaces to mirror traffic in different VLANs or interfaces to the same observing port.
  • Only one traffic policy can be applied to the inbound or outbound direction of each interface or VLAN.

Procedure

  1. Run the system-view command to enter the system view.
  2. Configure remote observing ports.

    • Configure a single remote observing port.

      Run the observe-port [ observe-port-index ] interface interface-type interface-number vlan vlan-id command to configure a Layer 2 remote observing port.

      vlan vlan-id indicates that a Layer 2 remote observing port sends mirrored packets to the monitoring device through the specified VLAN. Therefore, the Layer 2 remote observing port does not need to be added to the VLAN.

    • Configure multiple remote observing ports in a batch.

      1. Run the observe-port [ observe-port-index ] interface-range { interface-type interface-number [ to interface-type interface-number ] } &<1-8> vlan vlan-id command to configure multiple Layer 2 remote observing ports in a batch.

        Layer 2 remote observing ports configured in a batch can be bound to the same mirrored port to simplify the configuration. Therefore, batch configuration is recommended in 1:N mirroring.

        vlan vlan-id indicates that a Layer 2 remote observing port sends mirrored packets to the monitoring device through the specified VLAN. Therefore, the Layer 2 remote observing port does not need to be added to the VLAN.

      2. (Optional) Run the observe-port observe-port-index interface-range { add | delete } interface-type interface-number command to add or delete Layer 2 remote observing ports to or from multiple Layer 2 remote observing ports configured in a batch.

    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.

  3. Create a traffic classifier.

    1. Run the traffic classifier classifier-name [ operator { and | or } ] [ precedence precedence-value ] command to create a traffic classifier and enter the traffic classifier view.

    2. Run the if-match command to configure a matching rule.

      You can configure multiple matching rules in a traffic classifier. For details, see Configuring a Traffic Classifier in "MQC Configuration" in the S12700 V200R011C10 Configuration Guide - QoS.

    3. Run the quit command to exit from the traffic classifier view.

  4. Configure a traffic behavior and define traffic mirroring in the traffic behavior.

    1. Run the traffic behavior behavior-name command to create a traffic behavior and enter the traffic behavior view.

    2. Run the mirroring to observe-port observe-port-index command to define traffic mirroring in the traffic behavior.

      observe-port-index specifies the observing port index and must be the same as the index of the configured observing port.

    3. Run the quit command to exit from the traffic behavior view.

  5. Configure a traffic policy.

    1. Run the traffic policy policy-name [ match-order { auto | config } ] command to create a traffic policy and enter the traffic policy view.

      For details about how to configure a traffic policy, see Configuring a Traffic Policy in "MQC Configuration" in the S12700 V200R011C10 Configuration Guide - QoS.

    2. Run the classifier classifier-name behavior behavior-name command to bind the traffic classifier configured in step 3 and traffic behavior configured in step 4 to the traffic policy.

    3. Run the quit command to exit from the traffic policy view.

  6. Apply the traffic policy.

    A traffic policy can be applied to the system, a VLAN, or an interface. For details, see Applying the Traffic Policy in "MQC Configuration" in the S12700 V200R011C10 Configuration Guide - QoS.

    • Apply the traffic policy to the system.

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

    • Apply the traffic policy to a VLAN.

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

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

    • Apply the traffic policy to an interface.

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

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

Configuration Tips

Restoring the default configuration of an Ethernet port or Eth-Trunk configured as an observing port

  1. Delete the traffic policy applied to the system, a VLAN, or an interface. In the following example, a traffic policy is deleted from an interface.

    [HUAWEI] interface gigabitethernet x/x/x
    [HUAWEI-GigabitEthernetx/x/x] undo traffic-policy inbound/outbound
    [HUAWEI-GigabitEthernetx/x/x] quit
  2. Delete the traffic policy in the system view.

    [HUAWEI] undo traffic policy xxx
    
  3. Delete the traffic behavior containing the traffic mirroring action in the system view.

    [HUAWEI] undo traffic behavior xxx
  4. Delete the observing port configuration in the system view.

    [HUAWEI] undo observe-port x
    
  5. After steps 1 through 4 are complete, the default configuration of the Ethernet port or Eth-Trunk is restored. You can then configure other services on the Ethernet port or Eth-Trunk.

Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178113

Views: 138166

Downloads: 53

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