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 - QoS

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S 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).
Example for Configuring Priority Mapping

Example for Configuring Priority Mapping

Networking Requirements

As shown in Figure 2-5, voice, video, and data terminals on the enterprise's LAN connect to Eth2/0/0 and Eth2/0/1 of RouterA through SwitchA and SwitchB. The voice, video, and data flows are transmitted to the WAN through GE3/0/0 of RouterA.

Packets of different services are identified by 802.1p priorities on the LAN and enter different queues on LAN interfaces of RouterA based on 802.1p priorities. When packets reach the WAN from GE3/0/0, differentiated services need to be provided for the packets based on DSCP priorities. Therefore, RouterA needs to map 802.1p priorities to DSCP priorities. To meet this requirement, configure a priority mapping table on RouterA.

Figure 2-5  Networking diagram of priority mapping configurations

Configuration Roadmap

The configuration roadmap is as follows:
  1. Create VLANs and VLANIF interfaces on RouterA and configure interfaces to enable access to the WAN through RouterA.
  2. Configure interfaces of RouterA to trust 802.1p priorities in packets.
  3. Configure a priority mapping table on RouterA and set 802.1p-to-DSCP mappings in the table. RouterA can then map 802.1p priorities of packets to DSCP priorities.

Procedure

  1. Create VLANs and add interfaces to the VLANs.

    # Create VLAN 20 and VLAN 30 on RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] vlan batch 20 30
    

    # Configure Eth2/0/0 and Eth2/0/1 as trunk interfaces, and add Eth2/0/0 to VLAN 20 and Eth2/0/1 to VLAN 30.

    [RouterA] interface ethernet 2/0/0
    [RouterA-Ethernet2/0/0] port link-type trunk
    [RouterA-Ethernet2/0/0] port trunk allow-pass vlan 20
    [RouterA-Ethernet2/0/0] quit
    [RouterA] interface ethernet 2/0/1
    [RouterA-Ethernet2/0/1] port link-type trunk
    [RouterA-Ethernet2/0/1] port trunk allow-pass vlan 30
    [RouterA-Ethernet2/0/1] quit
    

    # On SwitchA, configure the interface connected to RouterA as a trunk interface and add it to VLAN 20. On SwitchB, configure the interface connected to RouterA as a trunk interface and add it to VLAN 30.

    # Create VLANIF 20 and VLANIF 30, assign IP address 192.168.2.1/24 to VLANIF 20, and assign IP address 192.168.3.1/24 to VLANIF 30.

    [RouterA] interface vlanif 20
    [RouterA-Vlanif20] ip address 192.168.2.1 24
    [RouterA-Vlanif20] quit
    [RouterA] interface vlanif 30
    [RouterA-Vlanif30] ip address 192.168.3.1 24
    [RouterA-Vlanif30] quit
    

    # Assign IP address 192.168.4.1/24 to GE3/0/0.

    [RouterA] interface gigabitethernet 3/0/0
    [RouterA-GigabitEthernet3/0/0] ip address 192.168.4.1 24
    [RouterA-GigabitEthernet3/0/0] quit
    

    # Configure RouterB to ensure that there are reachable routes between RouterB and RouterA.

  2. Configure priority mapping.

    # Configure Eth2/0/0 and Eth2/0/1 to trust 802.1p priorities in packets.

    [RouterA] interface ethernet 2/0/0
    [RouterA-Ethernet2/0/0] trust 8021p override
    [RouterA-Ethernet2/0/0] quit
    [RouterA] interface ethernet 2/0/1
    [RouterA-Ethernet2/0/1] trust 8021p override
    [RouterA-Ethernet2/0/1] quit
    

    # Configure a priority mapping table.

    [RouterA] qos map-table dot1p-dscp
    [RouterA-maptbl-dot1p-dscp] input 2 output 14
    [RouterA-maptbl-dot1p-dscp] input 5 output 40
    [RouterA-maptbl-dot1p-dscp] input 6 output 46
    

  3. Verify the configuration.

    # View priority mapping information on RouterA.

    <RouterA> display qos map-table dot1p-dscp
    Input Dot1p      DSCP                                                           
    -------------------                                                             
     0               0                                                              
     1               8                                                              
     2               14                                                             
     3               24                                                             
     4               32                                                             
     5               40                                                             
     6               46                                                             
     7               56                                                             
    

    # View the interface configuration on RouterA.

    <RouterA> display current-configuration interface ethernet 2/0/0
    #
    interface Ethernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 20
     trust 8021p override
    #
    return
    <RouterA> display current-configuration interface ethernet 2/0/1
    #
    interface Ethernet2/0/1
     port link-type trunk
     port trunk allow-pass vlan 30
     trust 8021p override
    #
    return

Configuration file

  • RouterA configuration
    #
     sysname RouterA
    #
    vlan batch 20 30
    #
    qos map-table dot1p-dscp
      input 2 output 14
      input 5 output 40
      input 6 output 46
    #
    interface Vlanif20
     ip address 192.168.2.1 255.255.255.0
    #                                                                               
    interface Vlanif30
     ip address 192.168.3.1 255.255.255.0
    #
    interface Ethernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 20
     trust 8021p override  
    #                                                                               
    interface Ethernet2/0/1
     port link-type trunk
     port trunk allow-pass vlan 30
     trust 8021p override 
    #                                                                               
    interface GigabitEthernet3/0/0
     ip address 192.168.4.1 255.255.255.0
    #
    return
    
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174115

Views: 40623

Downloads: 28

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