Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Reference (QoS Volume)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 48

ZXR10 M6000

Carrier-Class Router
Command Reference (QoS Volume)

Version 1.00.20

ZTE CORPORATION
NO. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: (86) 755 26771900
Fax: (86) 755 26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION

Copyright © 2010 ZTE CORPORATION.

The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution of
this document or any portion of this document, in any form by any means, without the prior written consent of ZTE CORPO-
RATION is prohibited. Additionally, the contents of this document are protected by contractual confidentiality obligations.

All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE CORPORATION
or of their respective owners.

This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions are dis-
claimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose, title or non-in-
fringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the use of or reliance on the
information contained herein.

ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subject
matter of this document. Except as expressly provided in any written license between ZTE CORPORATION and its licensee,
the user of this document shall not acquire any license to the subject matter herein.

ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.

Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.

The ultimate right to interpret this product resides in ZTE CORPORATION.

Revision History

Revision No. Revision Date Revision Reason


R1.0 2010–06–28 First Release

Serial Number: SJ-20100601182258-006


Chapter 1

AboutThisManual

Purpose Thanks for using ZXR10 routers of ZTE Corporation!


This manual provides procedures and guidelines that support the
operation of ZXR10 M6000 (V1.00.20) Carrier-Class Router.
Intended This manual is intended for the following engineers:
Audience
� On-site maintenance engineers
� Network monitor engineers
� System operation and maintenance engineer
What Is in This This manual contains the following contents:
Manual
Chapter Summary

Chapter 1 Manual Usage Describes the use method of the


Guidelines command manual, command
description, format convention,
auxiliary function and mode.

Chapter 2 Priority Inheritance Describes configuration and view


Configuration Commands commands related to priority
inheritance.

Chapter 3 H-QoS Configuration Describes configuration and view


Commands commands related to H-QoS.

Chapter 4 Policy Configuration Describes configuration and view


Commands commands related to policy
configuration.

Chapter 5 Flow Action Describes configuration and view


Configuration Commands commands related to flow action.

Chapter 6 H-QoS Binding Describes configuration and view


Configuration Commands commands related to H-QoS
binding.

Chapter 7 Binding H-QoS Describes configuration and view


Configuration Commands in commands related to H-QoS in
Switching Network switching network.

Chapter 8 CAR SET Configuration Describes configuration and view


Commands commands related to CAR SET.

Related The following documentation is related to this manual:


Documentation
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (Basic Configuration Volume)

Confidential and Proprietary Information of ZTE CORPORATION 1


ZXR10 M6000 Command Reference (QoS Volume)

� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-


erence (Interface Configuration Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (IP Service Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (IPv4 EGP Routing Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (IPv4 IGP Routing Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (IPv6 Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (Link Layer Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (MPLS Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (Multicast Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (Reliability Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (Security Volume)
� ZXR10 M6000 (V1.00.20) Carrier-Class Router Command Ref-
erence (VPN Volume)
The commands supported by ZXR10 M6000 (V1.00.20) Carrier-
Class Router are on the base of unified platform ROSng.
Conventions 1. Mouse operation conventions

Typeface Meaning

Refers to clicking the primary mouse button


Click
(usually the left mouse button) once.

Refers to quickly clicking the primary mouse


Double-click
button (usually the left mouse button) twice.

Refers to clicking the secondary mouse but-


Right-click
ton (usually the right mouse button) once.

Refers to pressing and holding a mouse but-


Drag
ton and moving the mouse.

2. Safety sign conventions


ZTE documents employ the following safety sign conventions.

Typeface Meaning

Indicates that device damage or serious in-


Danger jury accidents may occur.

Indicates that device damage or tremendous


Warning injury accidents may occur.

2 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 1 AboutThisManual

Typeface Meaning

Indicates that device damage, data loss, de-


vice performance degradation or other un-
Caution
predictable result may occur.

Indicates a suggestion or hint to make things


Tip easier or more productive for the reader.

Provides additional information about a cer-


Note tain topic.

3. Typographical conventions
ZTE documents employ the following typographical conven-
tions.

Typeface Meaning

/* */ Annotations, unnecessary to input.

Bold Commands or keywords.

<Italics> Parameters to configure.

Select one of the parameters that are de-


|
limited by it.

[] Optional parameters.

{} Mandatory parameters.

{x | y | z} Mandatory to select one among x, y and z.

Mandatory to select a parameters in the {} if


[x{y | z}]
the optional parameter in the [] is selected.

Confidential and Proprietary Information of ZTE CORPORATION 3


ZXR10 M6000 Command Reference (QoS Volume)

This page is intentionally blank.

4 Confidential and Proprietary Information of ZTE CORPORATION


Contents

AboutThisManual...............................................1
Manual Usage Guidelines...................................3
Description of Man-Machine Commands ............................. 3
Auxiliary Function ........................................................... 4
Command Mode ............................................................. 5
Priority Inheritance Configuration
Commands ........................................................9
mls-qos-mode................................................................ 9
qos-dot1p.....................................................................10
show mls-qos-mode.......................................................10
show qos-dot1p.............................................................10
H-QoS Configuration Commands ..................... 13
class-map.....................................................................13
match child...................................................................14
match dscp...................................................................14
match in-8021p.............................................................15
match in-vlan ...............................................................16
match interface .............................................................16
match ipv4-access-list....................................................17
match ipv6-access-list....................................................17
match mac-address .......................................................18
match mpls-exp ............................................................19
match mpls-lable...........................................................19
match multi-cast ...........................................................20
match out-8021p...........................................................20
match out-vlan .............................................................21
match precedence .........................................................22
match qos-id ................................................................22
match uni-cast ..............................................................23
match vrf-name ............................................................23
show class-map ............................................................24

Confidential and Proprietary Information of ZTE CORPORATION I


ZXR10 M6000 Command Reference (QoS Volume)

Policy Configuration Commands ...................... 25


class ............................................................................25
policy-map ...................................................................26
show policy-map ...........................................................26
Flow Action Configuration Commands ............. 27
bandwidth ....................................................................27
priority-llq ....................................................................28
priority-level .................................................................28
police...........................................................................29
random-detect ..............................................................30
set dscp .......................................................................31
set precedence..............................................................32
set mpls-exp.................................................................32
set 8021p.....................................................................33
service-policy................................................................34
H-QoS Binding Configuration Commands......... 35
service-policy................................................................35
show service-policy........................................................36
Binding H-QoS Configuration Commands in
Switching Network .......................................... 37
switch-fabric .................................................................37
show switch-fabric .........................................................38
CAR SET Configuration Commands .................. 39
rate-limit (QoS Interface Configuration Mode) ...................39
rate-limit (QoS SG Interface Configuration Mode) ..............41
show running-config carset .............................................42
show carset ..................................................................42

II Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2

Manual Usage
Guidelines

Table of Contents
Description of Man-Machine Commands ................................. 3
Auxiliary Function ............................................................... 4
Command Mode ................................................................. 5

Description of Man-Machine
Commands
Each MML command is described by the following items:
� Purpose
It describes the function implemented by this command.
� Command Mode
It describes the mode in which this command can be executed.
� Syntax
It describes the complete format of this command, including
the no format if possible.
� Parameter(s)
It describes parameters in this command in a table and pre-
scribes the range and default value. If different products have
different parameter ranges or default values, an additional ta-
ble is used for description.
� Default
The default value is available in the case that this command
is not set. The default parameter value is not described here
for value selection. Additional description should be given if
different products have different default values.
� Instructions
It firstly describes the platform version information about
this command. After these information, it describes the use
method and precautions of this command.
� Example(s)

Confidential and Proprietary Information of ZTE CORPORATION 3


ZXR10 M6000 Command Reference (QoS Volume)

It takes an example to introduce how to use this command.


� Related Command(s)
It lists commands related to this command.
� History Command(s)
It describes history version information related to this com-
mand if the command is changed after version upgrade.

Note:
Do not describe the command history if this entry does not exist.

Auxiliary Function
The auxiliary functions for ZXR10 devices are as follows.
1. In any command mode, enter a question mark “?” after the
DOS prompt of the system, a list of available commands in the
command mode will be displayed. With the context-sensitive
help function, the keywords and parameter lists of any com-
mands can be obtained.
i. In any command mode, enter a question mark “?” after
the DOS prompt of the system, a list of all commands in
the mode and the brief description of the commands will
be displayed.
ii. Input the question mark behind a character or character
string to view the list of commands or keywords beginning
with this character or character string. Note that there is
no space between the character (string) and the question
mark.
iii. Press Tab behind the character string. If the command or
keyword beginning with this character string is unique, it
will be completed with a space at the end. Note that there
is no space between the character string and the Tab.
iv. Input a question mark after a command, a keyword or a
parameter, the next keyword or parameter to be input will
be listed, and also a brief explanation will be given. Note
that a space must be entered before the question mark.
2. If incorrect command, keyword or parameter is input, the error
isolation is offered with ^ in the user interface after you press
Enter. The ^ is below the first character of the input incorrect
command, keyword or parameter.
3. ZXR10 router/Ethernet switch allows the command or key-
word to be abbreviated into a character or character string that
uniquely identifies this command or keyword. For example, the
show command can be abbreviated to sh or sho.
4. The user interface supports the function of recording input
commands. A maximum of ten history commands can be

4 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 Manual Usage Guidelines

recorded. The function is very useful in re-invocation of a long


or complicated command.
To re-invoke a command from the record buffer, conduct one
of the following operations.

Command Function

Press <Ctrl+P> or the up arrow Re-invokes the latest command in the record buffer. Repeat
key these keys to invoke old commands forwards.

Press <Ctrl+N> or the down Rolls the commands downward. When the last command
arrow key line is reached, one more operation will roll the commands
from the beginning of the buffer cyclically.

In any mode, execute the show history command to list the


latest commands input in this mode.

Command Mode
The command modes in this manual are shown below.

Mode Prompt Admission Entry Command Functions


Mode

Exec mode ZXR10> Enters directly after Views simple


user log into the information
system

Privileged ZXR10# Exec mode enable Configures system


mode parameters

Global con- ZXR10(config)# Privileged configure Configures global


figuration mode terminal service parameters
mode

Interface ZXR10(config-if)# Global con- interface Configures port


configura- figuration parameters and
tion mode mode selects a port type
depending on the
keyword

VLAN con- ZXR10(vlan-config)# Global con- vlan-configurat Configures VLAN


figuration figuration ion parameters
mode mode

Vlan sub-in- ZXR10(subvlan-if- VLAN con- interface Configures VLAN


terface con- config)# figuration <interface-name> sub-interface
figuration mode parameters
mode

SuperVLAN ZXR10(config- Global con- supervlan Configures


configura- supervlan)# figuration parameters related
tion mode mode to SuperVLAN
functions

Confidential and Proprietary Information of ZTE CORPORATION 5


ZXR10 M6000 Command Reference (QoS Volume)

Mode Prompt Admission Entry Command Functions


Mode

SuperVLAN ZXR10(config- SuperVLAN interface superv Configures


sub inter- supervlan-superif)# configura- lan <supervlan-id> parameters related
face con- tion mode to SuperVLAN sub
figuration interface functions
mode

IPv4 ACL ZXR10(config-ipv4- Global con- ipv4-access-list Defines basic ACL


configura- acl)# figuration rules
tion mode mode

LINE con- ZXR10(config-line)# Global con- line console 0 Configures


figuration figuration parameters related
mode mode to serial port and
telnet connection

RIP route ZXR10(config-rip)# Global con- router rip Configures RIP


configura- figuration parameters
tion mode mode

IPv4 OSPF ZXR10(config- Global con- router ospf Configures OSPF


route con- ospfv2)# figuration parameters
figuration mode
mode

IPv6 OSPF ZXR10(config- Global con- ipv6 router ospf Configures IPv6
route con- ospfv3)# figuration OSPF parameters
figuration mode
mode

IS-IS route ZXR10(config-isis)# Global con- router isis Configures IS-IS


configura- figuration parameters
tion mode mode

BGP route ZXR10(config-bgp)# Global con- router bgp Configures BGP


configura- figuration parameters
tion mode mode

VRF con- ZXR10(config-vrf)# Global con- ip vrf Configures VRF


figuration figuration parameters
mode mode

VFI configu- ZXR10(config-vfi)# Global con- vfi Configures


ration mode figuration parameters related
mode to VPLS

RIP route ZXR10(config-rip- Route con- address-family Configures RIP VRF


address af)# figuration ipv4 vrf parameters
configura- modeRIP
tion mode

BGP route ZXR10(config-bgp- Route con- address-family Configures BGP VPN


address af)# figuration vpnv4 and VRF protocol
configura- modeBGP address-family parameters
tion mode ipv4 vrf

Route map ZXR10(config-route- Global con- route-map Configures route


configura- map)# figuration map matching item
tion mode mode and operation

6 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 Manual Usage Guidelines

Mode Prompt Admission Entry Command Functions


Mode

PPP configu- ZXR10(config-ppp)# Global con- ppp Configures


ration mode figuration parameters related
mode to PPP

PPP inter- ZXR10(config-ppp- PPP configu- interface Configures


face con- if)# ration mode <interface-name> parameters related
figuration to PPP interface
mode

Time-Range ZXR10(config-tr)# Global con- time-range <time Configures time


configura- figuration -range-name> range rules
tion mode mode

Product ZXR10(config-pm)# Global con- pm Configures some


manage- figuration system parameters,
ment con- mode files, and so on
figuration
mode

Confidential and Proprietary Information of ZTE CORPORATION 7


ZXR10 M6000 Command Reference (QoS Volume)

This page is intentionally blank.

8 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 3

Priority Inheritance
Configuration
Commands

Table of Contents
mls-qos-mode.................................................................... 9
qos-dot1p.........................................................................10
show mls-qos-mode...........................................................10
show qos-dot1p ................................................................10

mls-qos-mode
Purpose Use this command to configure the interface priority inheritance
mode.
Command Mode Global configuration mode
Syntax mls-qos-mode <interface-name>{ uniform | pipe | short-pipe
}
no mls-qos-mode <interface-name>

Parameters
<interface-name> Name of a specified interface

uniform Uniform inheritance mode

pipe Pipe inheritance mode

short-pipe Short-pipe inheritance mode

Examples This example describes how to configure the priority inheritance


mode of the interface fei-0/9/0/11 as pipe:
ZXR10(config)#mls-qos-mode fei-0/9/0/11 pipe

This example shows describes to check result information of the


configuration:
ZXR10(config)#show mls-qos-mode
mls-qos-mode fei-0/9/0/11 pipe

Confidential and Proprietary Information of ZTE CORPORATION 9


ZXR10 M6000 Command Reference (QoS Volume)

qos-dot1p
Purpose Use this command to configure the 802.1p inheritance of an inter-
face.
Command Mode Global configuration mode
Syntax qos-dot1p <interface-name>
no qos-dot1p <interface-name>

Parameter
<interface-name> Name of a specified interface

Instructions 802.1p inheritance is only configured on sub-interfaces.


Examples This example describes how to configure the 802.1p inheritance of
the interface fei-0/9/0/11.1:
ZXR10(config)#qos-dot1p fei-0/9/0/11.1

This example describes how to check result information of the con-


figuration:
ZXR10(config)#show qos-dot1p
qos-dot1p fei-0/9/0/11.1

show mls-qos-mode
Purpose Use this command to show the interface priority inheritance mode.
Command Mode All modes except the user mode
Syntax show mls-qos-mode [<interface-name>]

Parameter
<interface-name> Name of a specified interface

Example This example describes how to show the interface priority inheri-
tance mode:
ZXR10(config)#show mls-qos-mode
mls-qos-mode fei-0/9/0/11 pipe

show qos-dot1p
Purpose Use this command to show the 802.1p inheritance of an interface.
Command Mode All modes except the user mode
Syntax show qos-dot1p [<interface-name>]

Parameter
<interface-name> Name of a specified interface

10 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 3 Priority Inheritance Configuration Commands

Example This example describes how to show the 802.1p inheritance of the
interface:
ZXR10(config)#show qos-dot1p
qos-dot1p fei-0/9/0/11.1

Confidential and Proprietary Information of ZTE CORPORATION 11


ZXR10 M6000 Command Reference (QoS Volume)

This page is intentionally blank.

12 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4

H-QoS Configuration
Commands

Table of Contents
class-map.........................................................................13
match child.......................................................................14
match dscp.......................................................................14
match in-8021p.................................................................15
match in-vlan ...................................................................16
match interface .................................................................16
match ipv4-access-list........................................................17
match ipv6-access-list........................................................17
match mac-address ...........................................................18
match mpls-exp ................................................................19
match mpls-lable...............................................................19
match multi-cast ...............................................................20
match out-8021p...............................................................20
match out-vlan .................................................................21
match precedence .............................................................22
match qos-id ....................................................................22
match uni-cast ..................................................................23
match vrf-name ................................................................23
show class-map ................................................................24

class-map
Purpose Use this command to create a class-map name and enter into the
class-map configuration mode.
Command Mode Global configuration mode
Syntax class-map <class-map-name> match-all
no class-map <class-map-name>

Parameter
<class-map-name> Name of the class-map

Instructions 1. Configurations on the class-map name of class-default are not


allowed.
2. If a <class-map-name> has been associated with a <policy-n
ame>, operations on the <class-map-name> are not allowed.

Confidential and Proprietary Information of ZTE CORPORATION 13


ZXR10 M6000 Command Reference (QoS Volume)

Example This example describes how to create a class-map named zte and
enter into the zte class-map configuration mode:
ZXR10(config)#class-map zte match-all
ZXR10(config-cmap)#

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map
class-map zte match-all

match child
Purpose Use this command to create a class-map data flow when the
matching item is null.
Command Mode Class-map configuration mode
Syntax match child
no match child
Instructions In the configuration mode of the same class-map, match inter-
face collides with any other matching rule.
Examples This example describes how to create a class-map data flow zte10
with the matching item is null
ZXR10(config)#class-map zte10 match-all
ZXR10(config-cmap)#match child

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte9
class-map zte9 match-all
match child

match dscp
Purpose Use this command to create a class-map data flow based on the
IP DSCP value.
Command Mode Class-map configuration mode
Syntax match dscp <dscp-range>[<dscp-range1><dscp-range2><dsc
p-range3>]
no match dscp

Parameter
<dscp-range> Specified IP-DSCP value or segment, ranging
from 0 to 63

Instructions 1. A maximum of four dscp-range parameters can be configured,


including dispersion number and segment. In addition, the
parameters are separated by commas (,).

14 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 H-QoS Configuration Commands

2. All the <dscp-range> parameters or segments are not over-


lapped with each other.
3. In the configuration mode of the same class-map, match
dscp collides with match precedence, match interface and
match child.
Examples This example describes how to create a class-map data flow zte
based on the IP DSCP value:
ZXR10(config)#class-map zte match-all
ZXR10(config-cmap)#match dscp 2-6,10-15

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte
class-map zte match-all
match dscp 2-6,10-15

match in-8021p
Purpose Use this command to create a class-map data flow based on the
inner-layer 802.1p value.
Command Mode Class-map configuration mode
Syntax match in-8021p <in8021p-range>[<in8021p-range1><in8021
p-range2><in8021p-range3>]
no match in-8021p

Parameter
<in8021p-range> Specified inner-layer 802.1p value or
segment, ranging from 0 to 7

Instructions 1. A maximum of four in8021p-range parameters can be config-


ured, including dispersion number and segment. In addition,
the parameters are separated by commas (,).
2. All the <in8021p-range> parameters or segments are not
overlapped with each other.
3. In the configuration mode of the same class-map, match
n-8021p collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte6
based on the specific inner-layer 802.1p value or segment:
ZXR10(config)# class-map zte6 match-all
ZXR10(config-cmap)# match in-8021p 0,1-3,5

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte6
class-map zte6 match-all
match in-8021p 0,1-3,5

Confidential and Proprietary Information of ZTE CORPORATION 15


ZXR10 M6000 Command Reference (QoS Volume)

match in-vlan
Purpose Use this command to create a class-map data flow based on the
inner-layer VLAN value.
Command Mode Class-map configuration mode
Syntax match in-vlan <invlan-range>[<invlan-range1><invlan-range2
><invlan-range3>]
no match in-vlan

Parameter
<invlan-range> Specified inner-layer VLAN value or segment,
ranging from 1 to 4094

Instructions 1. A maximum of four invlan-range parameters can be config-


ured, including dispersion number and segment. In addition,
the parameters are separated by commas (,).
2. All the <invlan-range> parameters or segments are not over-
lapped with each other.
3. In the configuration mode of the same class-map, match
in-vlan collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte4
based on the specific inner-layer VLAN value or segment:
ZXR10(config)# class-map zte4 match-all
ZXR10(config-cmap)# match in-vlan 1-20,40-50,100,200-250

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte4
class-map zte4 match-all
match in-vlan 1-20,40-50,100,200-250

match interface
Purpose Use this command to create a class-map data flow based on the
interface name.
Command Mode Class-map configuration mode
Syntax match interface [untag]<interface-name>
no match interface

Parameters
<interface-name> Name of an interface

untag Without label

Instructions 1. In the configuration mode of the same class-map, match in-


terface collides with any other matching rule.
2. The optional keyword untag identifies that the <interface-na
me> is a link interface.

16 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 H-QoS Configuration Commands

Examples This example describes how to create a class-map data flow zte9
on the base of the sub-interface fei-0/9/0/11.
ZXR10(config)#class-map zte9 match-all
ZXR10(config-cmap)#match interface untag fei-0/9/0/11

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte9
class-map zte9 match-all
match interface untag fei-0/9/0/11

match ipv4-access-list
Purpose Use this command to create a class-map data flow based on the
ipv4-access-list.
Command Mode Class-map configuration mode
Syntax match ipv4-access-list <acl4-name>
no match ipv4-access-list <acl4-name>

Parameter
<acl4-name> Specified ipv4-access-list name

Instructions 1. In the configuration mode of the same class-map, match


ipv4-access-list collides with match interface and match
child.
2. A maximum of 64 <acl4-name> parameters can be configured.
Examples This example describes how to create a class-map data flow zte8
based on the ipv4-access-list ztezxr10:
ZXR10(config-cmap)# match ipv4-access-list ztezxr10

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast
match mac-address 1111.1230.4567
match mpls-label 30
match ipv4-access-list ztezxr10

match ipv6-access-list
Purpose Use this command to create a class-map data flow based on the
ipv6-access-list.
Command Mode Class-map configuration mode
Syntax match ipv6-access-list <acl-name>
no match ipv6-access-list <acl-name>

Confidential and Proprietary Information of ZTE CORPORATION 17


ZXR10 M6000 Command Reference (QoS Volume)

Parameter
<acl-name> Specified ipv6-access-list name

Instructions 1. In the configuration mode of the same class-map, match


ipv6-access-list collides with match interface and match
child.
2. A maximum of 64 <acl-name> parameters can be configured.
Examples This example describes how to create a class-map data flow zte8
based on the ipv6-access-list chlw:
ZXR10(config-cmap)# match ipv6-access-list chlw

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast
match mac-address 1111.1230.4567
match mpls-label 30
match ipv4-access-list ztezxr10
match ipv6-access-list chlw

match mac-address
Purpose Use this command to create a class-map data flow based on the
mac-address value.
Command Mode Class-map configuration mode
Syntax match mac-address <mac-address>
no match mac-address

Parameter
<mac-address> Specified mac-address value

Instructions In the configuration mode of the same class-map, match mac-


address collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte8
based on the specific mac-address value:
ZXR10(config-cmap)# match mac-address 1111.1230.4567

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast
match mac-address 1111.1230.4567

18 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 H-QoS Configuration Commands

match mpls-exp
Purpose Use this command to create a class-map data flow based on the
MPLS-EXP value.
Command Mode Class-map configuration mode
Syntax match mpls-exp <exp-range>[<exp-range1><exp-range2><e
xp-range3>]
no match mpls-exp

Parameter
<exp-range> Specified MPLS-EXP value or segment,
ranging from 0 to 7

Instructions 1. A maximum of four exp-range parameters can be configured,


including dispersion number and segment. In addition, the
parameters are separated by commas (,).
2. All the <exp-range> parameters or segments are not over-
lapped with each other.
3. In the configuration mode of the same class-map, match
mpls-exp collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte3
based on the MPLS-EXP value:
ZXR10(config)# class-map zte3 match-all
ZXR10(config-cmap)# match mpls-exp 1,3-5,7

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte3
class-map zte3 match-all
match mpls-exp 1,3-5,7

match mpls-lable
Purpose Use this command to create a class-map data flow based on the
mpls-label value.
Command Mode Class-map configuration mode
Syntax match mpls-lable <lable>
no match mpls-lable

Parameter
<lable> Specified mpls-label value, ranging from 0
to 1048576

Instructions In the configuration mode of the same class-map, match mpls-


lable collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte8
based on the specific mpls-label value:
ZXR10(config-cmap)# match mpls-label 30

Confidential and Proprietary Information of ZTE CORPORATION 19


ZXR10 M6000 Command Reference (QoS Volume)

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast
match mac-address 1111.1230.4567
match mpls-label 30

match multi-cast
Purpose Use this command to create a class-map data flow based on the
multicast rules.
Command Mode Class-map configuration mode
Syntax match multi-cast
no match multi-cast
Instructions In the configuration mode of the same class-map, match multi-
cast collides with match uni-cast, match interface and match
child.
Examples This example describes how to create a class-map data flow zte8
based on the multicast rules:
ZXR10(config-cmap)#match multi-cast

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast

match out-8021p
Purpose Use this command to create a class-map data flow based on the
outer-layer 802.1p value.
Command Mode Class-map configuration mode
Syntax match out-8021p <out8021p-range>[<out8021p-range1><out
8021p-range2><out8021p-range3>]
no match out-8021p

Parameter
<out8021p-range> Specified outer-layer 802.1p value or
segment, ranging from 0 to 7

Instructions 1. A maximum of four out8021p-range parameters can be config-


ured, including dispersion number and segment. In addition,
the parameters are separated by commas (,).

20 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 H-QoS Configuration Commands

2. All the <out8021p-range> parameters or segments are not


overlapped with each other.
3. In the configuration mode of the same class-map, match out-
8021p collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte7
based on the specific outer-layer 802.1p value or segment:
ZXR10(config)# class-map zte7 match-all
ZXR10(config-cmap)# match out-8021p 1,4-5,7

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte7
class-map zte7 match-all
match out-8021p 1,4-5,7

match out-vlan
Purpose Use this command to create a class-map data flow based on the
outer-layer VLAN value.
Command Mode Class-map configuration mode
Syntax match out-vlan <outvlan-range>[<outvlan-range1><outvlan-r
ange2><outvlan-range3>]
no match out-vlan

Parameter
<outvlan-range> Specified outer-layer VLAN value or segment,
ranging from 1 to 4094

Instructions 1. A maximum of four outvlan-range parameters can be config-


ured, including dispersion number and segment. In addition,
the parameters are separated by commas (,).
2. All the <outvlan-range> parameters or segments are not over-
lapped with each other.
3. In the configuration mode of the same class-map, match out-
vlan collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte5
based on the specific outer-layer VLAN value or segment:
ZXR10(config)# class-map zte5 match-all
ZXR10(config-cmap)# match out-vlan 1-20,40-50,100,200-250

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte5
class-map zte5 match-all
match out-vlan 1-20,40-50,100,200-250

Confidential and Proprietary Information of ZTE CORPORATION 21


ZXR10 M6000 Command Reference (QoS Volume)

match precedence
Purpose Use this command to create a class-map data flow based on the
IP precedence value.
Command Mode Class-map configuration mode
Syntax match precedence <ipp-range>[<ipp-range1><ipp-range2><i
pp-range3>]
no match precedence

Parameter
<ipp-range> Specified IP-precedence value or segment,
ranging from 0 to 7

Instructions 1. A maximum of four ipp-range parameters can be configured,


including dispersion number and segment. In addition, the
parameters are separated by commas (,).
2. All the <ipp-range> parameters or segments are not over-
lapped with each other.
3. In the configuration mode of the same class-map, match
precedence collides with match dscp, match interface and
match child.
Examples This example describes how to create a class-map data flow zte2
based on the IP-precedence value:
ZXR10(config)# class-map zte2 match-all
ZXR10(config-cmap)# match precedence 0-2,4,6-7

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte2
class-map zte2 match-all
match precedence 0-2,4,6-7

match qos-id
Purpose Use this command to create a class-map data flow based on the
qos groupID value.
Command Mode Class-map configuration mode
Syntax match qos-id <qos-id>
no match qos-id

Parameter
<qos-id> Specified QoS ID value, ranging from 1 to
65535

Instructions In the configuration mode of the same class-map, match qos-id


collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte8
based on the specific qos grouID value:

22 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 H-QoS Configuration Commands

ZXR10(config)# class-map zte8 match-all


ZXR10(config-cmap)# match qos-id 30

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8
class-map zte8 match-all
match qos-id 30

match uni-cast
Purpose Use this command to create a class-map data flow based on the
unicast rules.
Command Mode Class-map configuration mode
Syntax match uni-cast
no match uni-cast
Instructions In the configuration mode of the same class-map, match uni-c
ast collides with match multi-cast, match interface and match
child.
Examples This example describes how to create a class-map data flow zte8
based on the unicast rules:
ZXR10(config-cmap)#match uni-cast

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8
class-map zte8 match-all
match qos-id 30
match vpn-id 25
match uni-cast

match vrf-name
Purpose Use this command to create a class-map data flow based on the
VRF name.
Command Mode Class-map configuration mode
Syntax match vrf-name<vrf-name>
no match vrf-name

Parameter
<vrf-name> Specified VRF name. The VRF name should
be configured first.

Instructions In the configuration mode of the same class-map, match vrf-n


ame collides with match interface and match child.
Examples This example describes how to create a class-map data flow zte8
based on the specific VRF name:
ZXR10(config-cmap)#match vrf-name vrf1

Confidential and Proprietary Information of ZTE CORPORATION 23


ZXR10 M6000 Command Reference (QoS Volume)

This example describes how to check result information of the con-


figuration:
ZXR10(config-cmap)#show class-map zte8
class-map zte8 match-all
match qos-id 30
match vrf-name vrf1

show class-map
Purpose Use this command to show all flow types of H-QoS, and the match-
ing items, or specific class-map-name and the matching items.
Command Mode All modes except the user mode
Syntax show class-map [<class-map-name>]

Parameter
<class-map-name> Class-map name

Examples This example describes how to show all the flow types of H-Qos:
ZXR10#show class-mapmap zte match-all
match dscp 2-6,10-15map zte2 match-all
match precedence 0-2,4,6-7map zte3 match-all
match mpls-exp 1,3-5,7map zte4 match-all
match in-vlan 1-20,40-50,100,200-250map zte5 match-all
match out-vlan 1-20,40-50,100,200-250map zte6 match-all
match in-8021p 0,1-3,5map zte7 match-all
match out-8021p 1,4-5,7map zte8 match-all
match qos-id 30
match vrf-name vrf1
match multi-cast
match mac-address 1111.1230.4567
match mpls-label 30
match ipv4-access-list ztezxr10
match ipv6-access-list chlwmap zte9 match-all
match child

24 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 5

Policy Configuration
Commands

Table of Contents
class ................................................................................25
policy-map .......................................................................26
show policy-map ...............................................................26

class
Purpose Use this command to associate with the class-map and enter into
the policy-class configuration mode.
Command Mode Policy-map configuration mode
Syntax class {<class-name>| class-default }
no class {<class-name>| class-default }

Parameters
<class-name> Name of the associated class-map

class-default Default associated class

Instructions 1. <class-name> use the class-map command to configure a


class-map first.
2. In the class-map configuration mode of <class-name>, at least
use match to show a matching item.
Examples This example describes how to configure the associated class-map
name of the policy-map policy1 as zte2 and enter into the policy-
map configuration mode:
ZXR10(config)#policy-map policy1
ZXR10(config-pmap)# class zte2
ZXR10(config-pmap-c)#

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy1
policy-map policy1
class zte2

Confidential and Proprietary Information of ZTE CORPORATION 25


ZXR10 M6000 Command Reference (QoS Volume)

policy-map
Purpose Use this command to create a policy-map name and enter into the
policy-map configuration mode.
Command Mode Global configuration mode
Syntax policy-map <policy-map-name>
no policy-map <policy-map-name>

Parameter
<policy-map-name> Name of a policy-map, with the length of 1
to 31 characters

Instructions 1. <policy-map-name> is already hierarchized in <policy-map-n


ame>, without any operation for <policy-map-name>.
2. <policy-map-name> is already hqos binded at a specific inter-
face, without any operation for <policy-map-name>.
3. <policy-map-name> is already hqos binded in the switching
network, without any operation for <policy-map-name>.
Example This example describes how to create a policy-map named policy1
and go enter into policy-map configuration mode of policy1:
ZXR10(config)#policy-map policy1
ZXR10(config-pmap)#

show policy-map
Purpose Use this command to show all H-QoS policy mappings, policy-
classes and related actions. This command also can be used to
show policy-classes and related actions of <policy-map-name>,
or actions of a specific policy-class.
Command Mode All modes except the user mode
Syntax show policy-map [<policy-map-name>[class <class- name>]]

Parameters
<policy-map-name> Name of a policy-map

<class-name> Name of a associated class

Example This example describes how to show all policy mappings of H-QoS:
ZXR10(config-pmap-c)#show policy-map
policy-map policy1
class zte2

26 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6

Flow Action
Configuration
Commands

Table of Contents
bandwidth ........................................................................27
priority-llq ........................................................................28
priority-level .....................................................................28
police...............................................................................29
random-detect ..................................................................30
set dscp ...........................................................................31
set precedence..................................................................32
set mpls-exp.....................................................................32
set 8021p.........................................................................33
service-policy....................................................................34

bandwidth
Purpose Use this command to configure the minimum available bandwidth
of a policy class.
Command Mode Policy-class configuration mode
Syntax bandwidth percent<percentage>
no bandwidth

Parameter
<percentage> Minimum bandwidth percentage, ranging
from 1 to 100

Instructions 1. In the same policy, bandwidth is incompatible with priority-l


evel, except for the priority-level configured in class-default.
2. In the same policy mapping class, bandwidth is incompatible
with priority-llq and priority-level.
3. In the same policy, the total bandwidth of all the policy classes
cannot exceed 100.
Examples This example describes how to configure the minimum available
bandwidth of the flow class zte2 with the policy mapping of policy1
as 60:
ZXR10(config-pmap-c)# bandwidth percent 60

Confidential and Proprietary Information of ZTE CORPORATION 27


ZXR10 M6000 Command Reference (QoS Volume)

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map
policy-map policy1
class zte2
bandwidth percent 60

priority-llq
Purpose Use this command to configure the LLQ priority of the policy class.
Command Mode Policy-class configuration mode
Syntax priority-llq
no priority-llq
Instructions 1. In the same policy, priority-llq is incompatible with bandwi
dth and priority-level.
2. In the same policy, priority-llq is incompatible with priorit
y-level, unless priority-level is configured in class-default,
<pq-level> is configured 2/3/4, and priority-llq is configured
in non class-default.
Examples This example describes how to configure LLQ priority for the flow
class zte9 with the policy mapping of policy2 and the associated
outer-layer VLAN value of 200:
ZXR10(config)#class-map zte9 match-all
ZXR10(config-cmap)#match out-vlan 200
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy2
ZXR10(config-pmap)# class zte9
ZXR10(config-pmap-c)# priority-llq

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy2
policy-map policy2
class zte9
priority-llq

priority-level
Purpose Use this command to configure the PQ priority of a policy class.
Command Mode Policy-class configuration mode
Syntax priority-level <level-value>
no priority-level

Parameter
<level-value> PQ priority, ranging from 1 to 4

Instructions 1. In the same policy, priority-level is incompatible with band


width and priority-llq

28 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 Flow Action Configuration Commands

2. In the same policy mapping class, priority-level is incom-


patible with bandwidth, unless bandwidth is configured in
non class-default, so that priority-level can be configured in
class-default
3. In the same policy, priority-level is incompatible with prior
ity-llq, unless priority-llq is configured in non class-default
so that priority-level can be configured in class-default and
<pq-level> is 2, 3 or 4.
Examples This example describes how to configure the PQ priority of the flow
class zte4 with the policy mapping of policy3 and the associated
outer-layer VLAN value of 300 as 2:
ZXR10(config)#class-map zte4 match-all
ZXR10(config-cmap)#match out-vlan 300
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy3
ZXR10(config-pmap)#class zte4
ZXR10(config-pmap-c)#priority-level 2

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy3
policy-map policy3
class zte4
priority-level 2

police
Purpose Use this command to configure traffic policing for the policy class.
Command Mode Policy-class configuration mode
Syntax police <cir><cbs>[<pir><pbs>]
no police

Parameters
<cir> Specified CIR, ranging from 8 to 20000000
kbit/s

<cbs> Specified CBS, ranging from 1 to 5120000


kilo bytes

<pir> Specified PIR, ranging from 8 to 20000000


kbit/s

<pbs> Specified PBS, ranging from 1 to 5120000


kbit

Examples This example describes how to configure traffic policing for the flow
class zte4 with the policy mapping of policy3:
ZXR10(config)#class-map zte2 match-all
ZXR10(config-cmap)#match out-vlan 200
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy3
ZXR10(config-pmap)#class zte4
ZXR10(config-pmap-c)#police 1024 512 2048 1024

This example describes how to check result information of the con-


figuration:

Confidential and Proprietary Information of ZTE CORPORATION 29


ZXR10 M6000 Command Reference (QoS Volume)

ZXR10(config-pmap-c)#show policy-map policy3


policy-map policy3
class zte4
priority-level 2
police 1024 512 2048 1024

random-detect
Purpose Use this command to configure WRED enabling, average queue
length and IP precedence based WRED parameters.
Command Mode Policy-class configuration mode
Syntax random-detect enable
no random-detect enable
random-detect weight <weight-len>
no random-detect weight
random-detect precedence <precedence><min-threshold
><max-threshold><probilitity >
no random-detect precedence <precedence>

Parameters
<weight-len> Average queue length

<precedence> Based IP precedence, in the range of 1-16

<min-threshold> The minimum threshold of WRED, in the


range of 1-1024000, in unit of Kilo bytes

<max-threshold> The maximum threshold of WRED, in the


range of 1-1024000, in unit of Kilo bytes

<probilitity > WERD dropping probability, in the range of


1-100

Instructions 1. WRED will be valid after WRED is enabled, that is, after rando
m-detect enable is configured and there are WRED parame-
ters on the base of IP precedence. When no random-detect
enable is configured, IP precedence based WRED parameters
will not be invalid. Whether to add or delete the parameters
depends on if there are random-detect enable action in the
show policy-map.
2. The value of <min-threshold> must be less than that of <max
-threshold>.
3. The default weight is 8.
4. The command random-detect can only be configured on a
policing leaf node. That is, in the same policy-map class, rand
om-detect collides with service-policy.
Examples This example describes how to configure a class-map named
zte15. The policy-map is policy9 and it matches exp-VLAN 800.
The action is enabling WRED and the average queue length is
the default. The IP precedence 1 based minimum threshold is
3000 kbs and the maximum threshold is 5000 kbs; the dropping

30 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 Flow Action Configuration Commands

probability is 60. The IP precedence 3 based minimum threshold


is 6000 kbs and the maximum threshold is 9000 kbs; the dropping
probability is 50.
ZXR10(config)#class-map zte15 match-all
ZXR10(config-cmap)#match out-vlan 800
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy9
ZXR10(config-pmap)#class zte15
ZXR10(config-pmap-c)#random-detect enable
ZXR10(config-pmap-c)#random-detect precedence 1 3000 5000 60
ZXR10(config-pmap-c)#random-detect precedence 3 6000 9000 50

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy9
policy-map policy9
class zte15
random-detect enable
random-detect precedence 1 3000 5000 60
random-detect precedence 3 3000 5000 60

set dscp
Purpose Use this command to configure the policy class to use a specified
value to label the DSCP field of a packet.
Command Mode Policy-class configuration mode
Syntax set dscp <dscp-value>
no set dscp

Parameter
<dscp-value> Value of DSCP, ranging from 0 to 63

Instructions 1. In the same policy mapping class, set dscp is incompatible


with set precedence.
2. The parameter set dscp can be configured under the leaf node
of the policy, that is, set dscp is incompatible with service-p
olicy in the same policy mapping class.
Example This example describes how to configure the DSCP field of the flow
class zte4 with the policy mapping of policy3 and the associated
outer-layer VLAN value of 200 as 3:
ZXR10(config)#class-map zte4 match-all
ZXR10(config-cmap)#match out-vlan 200
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy3
ZXR10(config-pmap)#class zte4
ZXR10(config-pmap-c)#set dscp 3

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy3
policy-map policy3
class zte4
priority-level 2
police 1024 512 2048 1024
set dscp 3

Confidential and Proprietary Information of ZTE CORPORATION 31


ZXR10 M6000 Command Reference (QoS Volume)

set precedence
Purpose Use this command to configure the policy class to use a specified
value to label the IP-precedence field of a packet.
Command Mode Policy-class configuration mode
Syntax set precedence <ipp-value>
no set precedence

Parameter
<ipp-value> Value of IP-precedence, ranging from 0 to 7

Instructions 1. In the same policy mapping class, set precedence is incom-


patible with set dscp.
2. The parameter set precedence can be configured under the
leaf node of the policy only, that is, set precedence is incom-
patible with service-policy in the same policy mapping class.
Example This example describes how to configure the IP-precedence field
of the flow class zte3 with the policy mapping of policy1 and the
associated outer-layer VLAN value of 600 as 2:
ZXR10(config)#class-map zte3 match-all
ZXR10(config-cmap)#match out-vlan 600
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy1
ZXR10(config-pmap)#class zte2
ZXR10(config-pmap-c)#set precedence 2

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy1
policy-map policy1
class zte2
bandwidth percent 60
class zte3
set precedence 2

set mpls-exp
Purpose Use this command to configure the policy class to use a specified
value to label the MPLS-EXP field of a packet.
Command Mode Policy-class configuration mode
Syntax set mpls-exp <exp-value>
no set mpls-exp

Parameter
<exp-value> Value of MPLS-EXP, ranging from 0 to 7

Instructions The parameter set mpls-exp can be configured under the leaf
node of the policy only. That is, in the same policy mapping class,
set mpls-exp is incompatible with service-policy.

32 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 Flow Action Configuration Commands

Examples This example describes how to configure the MPLS-EXP field of the
flow class zte4 with the policy mapping of policy3 as 2:
ZXR10(config)#policy-map policy3
ZXR10(config-pmap)#class zte4
ZXR10(config-pmap-c)#set mpls-exp 2

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy3
policy-map policy3
class zte4
priority-level 2
police 1024 512 2048 1024
set dscp 3
set mpls-exp 2

set 8021p
Purpose Use this command to configure the policy class to use a specified
value to label the 802.1p field of a packet.
Command Mode Policy-class configuration mode
Syntax set 8021p <8021p-value>
no set 8021p

Parameter
<8021p-value> Value of 802.1p, ranging from 0 to 7

Instructions The parameter set 8021p can be configured under the leaf node
of the policy only. That is, in the same policy mapping class, set
8021p is incompatible with service-policy.
Example This example describes how to configure the 802.1p field of the
flow class zte4 with the policy mapping of policy3 and the associ-
ated outer-layer VLAN value of 800 as 2:
ZXR10(config)#class-map zte4 match-all
ZXR10(config-cmap)#match out-vlan 600
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy3
ZXR10(config-pmap)#class zte4
ZXR10(config-pmap-c)#set 8021p 2

This example describes how to check result information of the con-


figuration:
ZXR10(config-pmap-c)#show policy-map policy3
policy-map policy3
class zte4
priority-level 2
police 1024 512 2048 1024
set dscp 3
set mpls-exp 2
set 8021p 2

Confidential and Proprietary Information of ZTE CORPORATION 33


ZXR10 M6000 Command Reference (QoS Volume)

service-policy
Purpose Use this command to configure the layering policy of the policy
class.
Command Mode Policy-class configuration mode
Syntax service-policy <policy-map-name>
no service-policy

Parameter
<policy-map-name> Name of the policy mapping to be layered

Instructions In the same policy mapping class, service-policy is incompatible


with set 8021p, set dscp, set precedence, set mpls-exp, or
random-detect.
Example This example describes how to configure the flow class zte15 with
the policy mapping of policy9 and the associated outer-layer VLAN
value of 800 to layer policy3:
ZXR10(config)#class-map zte15 match-all
ZXR10(config-cmap)#match out-vlan 800
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy9
ZXR10(config-pmap)#class zte15
ZXR10(config-pmap-c)#service-policy policy3

34 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 7

H-QoS Binding
Configuration
Commands

Table of Contents
service-policy....................................................................35
show service-policy............................................................36

service-policy
Purpose Use this command to bind the H-QoS policy to an interface.
Command Mode Global configuration mode
Syntax service-policy <interface-name>{ input | output }<policy-ma
p-name>[{ overwrite | append }]
no service-policy <interface-name>{ input | output }[{ over
write | append }]

Parameters
<interface-name> Name of a specified interface

<policy-map-name> Name of the H-QoS policy

Instructions 1. Use policy-map to configure the H-QoS policy name first.


2. H-Qos binding collides with rate-limit (car-set interface rate
limit) in the same direction of the same interface.
3. The optional keywords overwrite and append are used in
H-QoS configuration of link level. When append is config-
ured, there is only one layer of policy-map bound, and only
global ports can be matched (The class is not allowed to exceed
the range of sub-interfaces that have been configured. It can
be less than the range, but cannot be larger than the range.
The action may be rate-limit, WFQ, PQ, and so on). When
overwrite is configured, the H-QoS rule on the link interface is
subjected to the policy. All previous configurations are invalid.
Sub-interface binding commands configured later will not take
effect. To configure a policy on the base of the sub-interface
again, it is necessary to delete the covered H-QoS configura-
tion on the link interface explicitly.

Confidential and Proprietary Information of ZTE CORPORATION 35


ZXR10 M6000 Command Reference (QoS Volume)

Examples This example describes how to configure the H-QoS policy of the
interface fei-0/9/0/11 as policy8:
ZXR10(config)#class-map zte15 match-all
ZXR10(config-cmap)#match out-vlan 800
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy8
ZXR10(config-pmap)#class zte15
ZXR10(config-pmap-c)#set 8021p 2
ZXR10(config-pmap-c)#exit
ZXR10(config-pmap)#exit
ZXR10(config)#service-policy fei-0/9/0/11 input policy8

This example describes how to check result information of the con-


figuration:
ZXR10(config)#show service-policy
service-policy fei-0/9/0/11 input policy8

show service-policy
Purpose Use this command to show the H-QoS policy of an interface.
Command Mode All modes except the user mode
Syntax show service-policy [<interface-name>]

Parameter
<interface-name> Name of a specific interface

Example This example describes how to display the H-QoS policy of the
interface:
ZXR10(config)#show service-policy
service-policy fei-0/9/0/11 input policy8

36 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 8

Binding H-QoS
Configuration
Commands in Switching
Network

Table of Contents
switch-fabric .....................................................................37
show switch-fabric .............................................................38

switch-fabric
Purpose Use this command to bind H-Qos policy in the switching network.
Command Mode Global configuration mode
Syntax switch-fabric service-policy <policy-map-name>
no switch-fabric service-policy <policy-map-name>

Parameter
<policy-map-name> Name of the H-QoS policy

Instructions Use policy-map to configure H-Qos policy name.


Examples This example describes how to configure H-Qos policy8 at interface
fei-0/9/0/11.
ZXR10(config)#class-map zte15 match-all
ZXR10(config-cmap)#match out-vlan 800
ZXR10(config-cmap)#exit
ZXR10(config)#policy-map policy8
ZXR10(config-pmap)#class zte15
ZXR10(config-pmap-c)#set 8021p 2
ZXR10(config-pmap-c)#exit
ZXR10(config-pmap)#exit
ZXR10(config)#switch-fabric service-policy policy8

This example describes how to check result information of the con-


figuration:
ZXR10(config)#show switch-fabric
switch-fabric service-policy policy8

Confidential and Proprietary Information of ZTE CORPORATION 37


ZXR10 M6000 Command Reference (QoS Volume)

show switch-fabric
Purpose Use this command to show bound H-Qos policy in the switching
network.
Command Mode All modes except for user mode
Syntax show switch-fabric
Example This example describes how to display bound H-Qos policy in the
switching network.
ZXR10(config)#show switch-fabric
switch-fabric service-policy policy8

38 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 9

CAR SET Configuration


Commands

Table of Contents
rate-limit (QoS Interface Configuration Mode) .......................39
rate-limit (QoS SG Interface Configuration Mode) ..................41
show running-config carset .................................................42
show carset ......................................................................42

rate-limit (QoS Interface


Configuration Mode)
Purpose Use this command to configure the rate limit of CAR SET in QoS
interface configuration mode.
Command Mode QoS interface configuration mode
Syntax rate-limit {input | output}{ localport | dscp <dscp-value>|
mpls-exp <mpls-exp-value>| precedence <prec-value>| ex-8
02.1p <ex-802.1p-value>| ex-vlan <exvlan-value>| in-802.1p
<in802.1p-value>| in-vlan <invlan-value>} cir <cir-value> cbs
<cbs-value> pir <pir-value> pbs <pbs-value> conform-action
<action> exceed-action <action> violate-action <action>
no rate-limit {input | output}{ localport | dscp <dscp-val
ue>| mpls-exp <mpls-exp-value>| precedence <prec-value>|
ex-802.1p <ex-802.1p-value>| ex-vlan <exvlan-value>| in-80
2.1p <in802.1p-value>| in-vlan <invlan-value>}

Parameters
input | output Input/Output interface

localport Local port

dscp <dscp-value> DSCP value, in the range of 0~63

mpls-exp <mpls-exp MPLS-EXP value, in the range of 0~7


-value>

precedence IP priority, in the range of 0~7


<prec-value>

Confidential and Proprietary Information of ZTE CORPORATION 39


ZXR10 M6000 Command Reference (QoS Volume)

ex-802.1p VLAN priority, in the range of 0~7


<ex-802.1p-value>

in-802.1p in-8021p value, in the range of 0~7


<in802.1p-value>

ex-vlan <exvlan-val ex-vlan value, in the range of 1~4094


ue>

in-802.1p in-vlan value, in the range of 1~4094


<in802.1p-value>

conform-action The action taken on the packets matching the


<action> specific rate limit

exceed-action The action taken on the packets matching the


<action> specific rate limit

violate-action The action taken on the packets matching the


<action> specific rate limit

The value range of conform-action <action>:

conform-action Description
<action>

drop Drops packets

transmit Transmits packets

set-dscp-transmit Sets DSCP value (0~63) and transmits


packets

set-prec-transmit Sets IP priority (0~7) and transmits packets

set-exp -transmit Sets MPLS priority value (0~7) and transmits


packets

set-8021p-transmit Sets 802.1P priority (0~7) and transmits


packets

The value range of exceed-action <action>:

exceed-action Description
<action>

drop Drops packets

transmit Transmits packets

set-dscp-transmit Sets DSCP value (0~63) and transmits


packets

set-prec-transmit Sets IP priority (0~7) and transmits packets

set-exp -transmit Sets MPLS priority value (0~7) and transmits


packets

set-8021p-transmit Sets 802.1P priority (0~7) and transmits


packets

40 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 9 CAR SET Configuration Commands

The value range of violate-action <action>:

violate-action Description
<action>

drop Drops packets

transmit Transmits packets

set-dscp-transmit Sets DSCP value (0~63) and transmits


packets

set-prec-transmit Sets IP priority (0~7) and transmits packets

set-exp -transmit Sets MPLS priority value (0~7) and transmits


packets

set-8021p-transmit Sets 802.1P priority (0~7) and transmits


packets

Example This example shows how to configure rate limit of CAR SET.
ZXR10(config-qos-if)# rate-limit input dscp 3 cir 66 cbs 20000
pir 88 pbs 30000 conform-action transmit exceed-action transmit
violate-action drop
ZXR10(config-qos-if)# no rate-limit input dscp 3

rate-limit (QoS SG Interface


Configuration Mode)
Purpose Use this command to configure rate limit of CAR SET in QoS SG
interface configuraition mode.
Command Mode QoS SG interface configuration mode
Syntax rate-limit {input | output}pir <pir-value> pbs <pbs-value>
no rate-limit {input | output}

Parameters
<interface-name> Input/Output interface

<pir-value> PIR, in the range of 8~20000000, in the unit


of kbit/s

<pbs-value> PBS, in the range of 1~5120000, in the unit


of kbit

Example This example shows how to configure rate limit CAR SET.
ZXR10(config-qos-SGif)# rate-limit input pir 88 pbs 30000
ZXR10(config-qos-SGif)# no rate-limit input

Confidential and Proprietary Information of ZTE CORPORATION 41


ZXR10 M6000 Command Reference (QoS Volume)

show running-config carset


Purpose Use this command to view the CAR SET configured on an interface
in the database.
Command Mode All modes except user mode
Syntax show running-config carset
Example This example shows how to view the CAR SET configured on an
interface in the database.
ZXR10(config)# show running-config carset
interface gei-0/1/1/1
rate-limit output precedence 1 cir 100000 cbs 200000 pir 150000
pbs 300000 conform-action set-prec-transmit 7 exceed-action
set-prec-transmit 7 violate-action drop
rate-limit output precedence 2 cir 100000 cbs 200000 pir 150000
pbs 300000 conform-action set-prec-transmit 7 exceed-action
set-prec-transmit 7 violate-action drop

show carset
Purpose Use this command to view the CAR SET configured on an actual
protocol interface.
Command Mode All modes except user mode
Syntax show carset
Example This example shows how to view the CAR SET configured on an
actual protocol interface.
ZXR10(config)# show carset
interface gei-0/1/1/1
rate-limit output precedence 1 cir 100000 cbs 200000 pir 150000
pbs 300000 conform-action set-prec-transmit 7 exceed-action
set-prec-transmit 7 violate-action drop
rate-limit output precedence 2 cir 100000 cbs 200000 pir 150000
pbs 300000 conform-action set-prec-transmit 7 exceed-action
set-prec-transmit 7 violate-action drop

42 Confidential and Proprietary Information of ZTE CORPORATION

You might also like