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 V200R013C00 Configuration Guide - QoS

This document describes the configurations of QoS functions, including MQC, priority mapping, traffic policing, traffic shaping, interface-based rate limiting, congestion avoidance, congestion management, packet filtering, redirection, traffic statistics, ACL-based simplified traffic policy, and HQoS.
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 ACL-based Local Flow Mirroring

Example for Configuring ACL-based Local Flow Mirroring

Networking Requirements

As shown in Figure 9-6, HostA connects to SwitchA through GigabitEthernet1/0/1. The server directly connects to GigabitEthernet1/0/2 on SwitchA.

The server (monitoring device) is required to monitor packets with the 802.1p priority of 6 sent by HostA.

Figure 9-6  Networking of local flow mirroring

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure GigabitEthernet1/0/2 as the local observing interface so that the server can receive mirroring packets.
  2. Configure a Layer 2 ACL to match packets with the 802.1p priority of 6.
  3. Configure an ACL-based traffic policy on GigabitEthernet1/0/1 to mirror packets with the 802.1p priority of 6.

Procedure

  1. Configure an observing interface.

    # Configure GigabitEthernet1/0/2 on SwitchA as the observing interface

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] observe-port 1 interface gigabitethernet 1/0/2
    

  2. Configure a Layer 2 ACL to match packets with the 802.1p priority of 6.

    # Create ACL 4001 (Layer 2 ACL) on SwitchA to match packets with the 802.1p priority of 6.

    [SwitchA] acl 4001
    [SwitchA-acl-L2-4001] rule permit 8021p 6
    [SwitchA-acl-L2-4001] quit
    

  3. Configure an ACL-based traffic policy.

    # Configure an ACL-based traffic policy on GigabitEthernet1/0/1 to mirror packets with the 802.1p priority of 6.

    [SwitchA] interface gigabitethernet 1/0/1
    [SwitchA-GigabitEthernet1/0/1] traffic-mirror inbound acl 4001 to observe-port 1
    [SwitchA-GigabitEthernet1/0/1] quit
    [SwitchA] quit
    

  4. Verify the configuration.

    # Check the ACL-based traffic policy that has been applied to GigabitEthernet1/0/1 and the traffic behavior.

    <SwitchA> display traffic-applied interface gigabitethernet 1/0/1 inbound
    -----------------------------------------------------------
    ACL applied inbound interface GigabitEthernet1/0/1
    
    ACL 4001
     rule 5 permit 8021p 6
    ACTIONS:
     mirror to observe-port 1
    -----------------------------------------------------------

    The preceding information shows that the traffic behavior in the ACL-based traffic policy defines the action of mirroring packets with the 802.1p priority of 6 on GigabitEthernet1/0/1.

Configuration Files

  • SwitchA configuration file

    #
    sysname SwitchA
    #
    observe-port 1 interface GigabitEthernet1/0/2
    #
    acl number 4001
     rule 5 permit 8021p 6
    #
    interface GigabitEthernet1/0/1
     traffic-mirror inbound acl 4001 to observe-port 1
    #
    return
    
Translation
Download
Updated: 2019-04-08

Document ID: EDOC1100065653

Views: 19079

Downloads: 45

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