06-ACL and QoS Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WA Series Access Points Command References(R1507P09)-6W10106-ACL and QoS Command Reference
02-QoS Commands
Title Size Download
02-QoS Commands 162.46 KB

Class commands

display traffic classifier

Use display traffic classifier to display class information.

Syntax

display traffic classifier user-defined [ classifier-name ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

user-defined: Displays user-defined classes.

classifier-name: Specifies a class by its name, a string of 1 to 31 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If no class name is specified, the command displays information about all user-defined classes.

Examples

# Display information about all user-defined classes.

<Sysname> display traffic classifier user-defined

User Defined Classifier Information:

 Classifier: USER1

  Operator: AND

  Rule(s) : If-match ip-precedence 5

 Classifier: database

  Operator: AND

  Rule(s) : If-match acl 3131

Table 1 Command output

Field

Description

Classifier

Class name and its match criteria.

Operator

Match operator you set for the class. If the operator is AND, the class matches the packets that match all its match criteria. If the operator is OR, the class matches the packets that match any of its match criteria.

Rule(s)

Match criteria.

 

if-match

Use if-match to define a match criterion.

Use undo if-match to delete a match criterion.

Syntax

if-match match-criteria

undo if-match match-criteria

undo if-match acl [ ipv6 ] { acl-number | name acl-name } [ update acl [ ipv6 ] { acl-number | name acl-name } ]

Views

Class view

Default command level

2: System level

Parameters

match-criteria: Specifies a match criterion. Table 2 shows the available criteria.

acl [ ipv6 ] { acl-number | name acl-name }: Specifies an ACL already used in the class by the ACL name or ACL number.

update acl [ ipv6 ] { acl-number | name acl-name }: Specifies a new ACL by its number or name to replace the ACL already used by the class.

Table 2 The value range for the match-criteria argument

Keyword and argument combination

Description

acl [ ipv6 ] { acl-number | name acl-name }

Matches an ACL.

The acl-number argument ranges from 2000 to 4999 for an IPv4 ACL, and 2000 to 3999 for an IPv6 ACL.

The acl-name argument is a case-insensitive string of 1 to 63 characters, which must start with an English letter from a to z or A to Z, and to avoid confusion, it cannot be all.

any

Matches all packets.

dscp dscp-list

Matches DSCP values.

The dscp-list argument is a list of up to eight DSCP values. A DSCP value ranges from 0 to 63.

destination-mac mac-address

Matches a destination MAC address.

customer-dot1p 8021p-list

Matches the 802.1p priority of the customer network.

The 8021p-list argument is a list of up to eight 802.1p priority values. An 802.1p priority ranges from 0 to 7.

ip-precedence ip-precedence-list

Matches IP precedence values.

The ip-precedence-list argument is a list of up to eight IP precedence values. An IP precedence ranges from 0 to 7.

local-precedence local-precedence-list

Matches local precedence values.

The local-precedence-list argument is a list of up to eight local precedence values. A local precedence ranges from 0 to 7.

protocol protocol-name

Matches a protocol.

The protocol-name argument can be arp, ip, ipv6, bittorrent, and so on.

source-mac mac-address

Matches a source MAC address.

customer-vlan-id { vlan-id-list | vlan-id1 to vlan-id2 }

Matches the VLAN IDs of customer networks.

The vlan-id-list argument is a list of up to eight VLAN IDs. The vlan-id1 to vlan-id2 option specifies a VLAN ID range, where the vlan-id1 must be smaller than the vlan-id2. A VLAN ID ranges from 1 to 4094.

 

Usage guidelines

Defining an ACL-based match criterion

If the ACL used in the if-match command does not exist, the class cannot be applied to hardware.

For a class, you can use an ACL twice by its name and number with the if-match command, respectively.

Defining a criterion to match a destination MAC address

You can configure multiple destination MAC address match criteria for a class.

A destination MAC address match criterion is significant only to Ethernet interfaces.

Defining a criterion to match a source MAC address

You can configure multiple source MAC address match criteria for a class.

A source MAC address match criterion is significant only to Ethernet interfaces.

Defining a criterion to match DSCP values

·          You can configure multiple DSCP match criteria for a class. All defined DSCP values are automatically sorted in ascending order.

·          You can configure up to eight DSCP values in one command line. If multiple identical DSCP values are specified, the system considers them as one. If a packet matches one of the defined DSCP values, it matches the if-match clause.

·          To delete a criterion that matches DSCP values, the specified DSCP values must be identical with those defined in the criterion (the sequence may be different).

Defining a criterion to match 802.1p priority in customer network VLAN tags

·          You can configure multiple 802.1p priority match criteria for a class. All the defined 802.1p values are automatically arranged in ascending order.

·          You can configure up to eight 802.1p priority values in one command line. If the same 802.1p priority value is specified multiple times, the system considers them as one. If a packet matches one of the defined 802.1p priority values, it matches the if-match clause.

·          To delete a criterion that matches 802.1p priority values, the specified 802.1p priority values in the command must be identical with those defined in the criterion (the sequence may be different).

Defining a criterion to match IP precedence values

·          You can configure multiple IP precedence match criteria for a class. The defined IP precedence values are automatically arranged in ascending order.

·          You can configure up to eight IP precedence values in one command line. If the same IP precedence is specified multiple times, the system considers them as one. If a packet matches one of the defined IP precedence values, it matches the if-match clause.

·          To delete a criterion that matches IP precedence values, the specified IP precedence values in the command must be identical with those defined in the criterion (the sequence may be different).

Defining a criterion to match local precedence values

·          You can configure multiple local precedence match criteria for a class. The defined local precedence values are automatically arranged in ascending order.

·          You can configure up to eight local precedence values in one command line. If the same local precedence value is specified multiple times, the system considers them as one. If a packet matches one of the defined local precedence values, it matches the if-match clause.

·          To delete a criterion that matches local precedence values, the specified local precedence values must be identical with those defined in the match criterion (the sequence may be different).

Defining a criterion to match customer network VLAN IDs

·          You can configure multiple VLAN ID match criteria for a class. The defined VLAN IDs are automatically arranged in ascending order.

·          You can configure multiple VLAN IDs in one command line. If the same VLAN ID is specified multiple times, the system considers them as one. If a packet matches one of the defined VLAN IDs, it matches the if-match clause.

·          To delete a criterion that matches VLAN IDs, the specified VLAN IDs in the command must be identical with those defined in the criterion (the sequence may be different).

Examples

# Define a match criterion for class class1 to match the packets with their destination MAC addresses as 0050-ba27-bed3.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3

# Define a match criterion for class class2 to match the packets with their source MAC addresses as 0050-ba27-bed2.

<Sysname> system-view

[Sysname] traffic classifier class2

[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2

# Define a match criterion for class class1 to match the packets with their customer network 802.1p priority values as 3.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match customer-dot1p 3

# Define a match criterion for class class1 to match the advanced ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl 3101

# Define a match criterion for class class1 to match the ACL named flow.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl name flow

# Define a match criterion for class class1 to match the advanced IPv6 ACL 3101.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl ipv6 3101

# Define a match criterion for class class1 to match the IPv6 ACL named flow.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl ipv6 name flow

# Define a match criterion for class class1 to match all packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match any

# Define a match criterion for class class1 to match the packets with their DSCP values as 1, 6, or 9.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match dscp 1 6 9

# Define a match criterion for class class1 to match the packets with their IP precedence values as 1 or 6.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match ip-precedence 1 6

# Define a match criterion for class class1 to match the packets with their local precedence values as 1 or 6.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match local-precedence 1 6

# Define a match criterion for class class1 to match IP packets.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match protocol ip

# Define a match criterion for class class1 to match the packets of customer network VLAN 1, 6, or 9.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match customer-vlan-id 1 6 9

# Change the match criterion of class class1 from ACL 2008 to ACL 2009.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1] if-match acl 2008

[Sysname-classifier-class1] undo if-match acl 2008 update acl 2009

Related commands

traffic classifier

traffic classifier

Use traffic classifier to create a class and enter class view.

Use undo traffic classifier to delete a class.

Syntax

traffic classifier classifier-name [ operator { and | or } ]

undo traffic classifier classifier-name

Views

System view

Default command level

2: System level

Parameters

classifier-name: Specifies a class name, a string of 1 to 31 characters.

operator: Sets the operator to logic AND or OR for the class. The default operator is logic AND

and: Specifies the logic AND operator. The class matches the packets that match all its criteria.

or: Specifies the logic OR operator. The class matches the packets that match any of its criteria.

Examples

# Create a class class1.

<Sysname> system-view

[Sysname] traffic classifier class1

[Sysname-classifier-class1]

Related commands

·          classifier behavior

·          qos apply policy

·          qos policy

Traffic behavior commands

car

Use car to configure a CAR action in a traffic behavior.

Use undo car to delete the CAR action in a traffic behavior.

Syntax

car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ green action ] [ red action ]

undo car

Default

CBS is the amount of traffic transmitted at the rate of CIR over 500 ms.

Views

Traffic behavior view

Default command level

2: System level

Parameters

cir committed-information-rate: Sets the committed information rate (CIR) in kbps, which specifies an average traffic rate.

cbs committed-burst-size: Sets the committed burst size (CBS) in bytes.

ebs excess-burst-size: Sets the excess burst size (EBS) in bytes. The default is 0.

pir peak-information-rate: Sets the peak information rate (PIR) in kbps.

green action: Sets the action to take on packets that conform to CIR. The default is pass.

red action: Sets the action to take on the packet that conforms to neither CIR nor PIR. The default is discard.

action: Sets the action to take on the packet:

·          discard: Drops the packet.

·          pass: Permits the packet to pass through.

·          remark-lp-pass new-local-precedence: Sets the local precedence value of the packet to new-local-precedence and permits the packet to pass through. The new-local-precedence argument ranges from 0 to 7.

Usage guidelines

A QoS policy that has a CAR action can be applied to the inbound or outbound direction of an interface.

If a QoS policy that has a CAR action and the qos car command are both configured on an interface, only the CAR action in the policy takes effect.

A traffic behavior can contain only one CAR action. If you configure the car command multiple times in the same traffic behavior, the last configuration takes effect.

Examples

# Configure a CAR action in traffic behavior database (set the CIR to 200 kbps, CBS to 50000 bytes, and EBS to 0, and permit the conforming packets to pass, and mark the excess packets with local precedence 0 and forward them.)

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] car cir 200 cbs 50000 ebs 0 green pass red remark-lp-pass 0

Related commands

·          classifier behavior

·          qos policy

·          traffic behavior

display traffic behavior

Use display traffic behavior to display traffic behavior information.

Syntax

display traffic behavior user-defined [ behavior-name ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

user-defined: Displays user-defined traffic behaviors.

behavior-name: Specifies a behavior by its name, a string of 1 to 31 characters. If no traffic behavior is specified, this command displays information about all the user-defined behaviors.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display all user-defined traffic behaviors.

<Sysname> display traffic behavior user-defined

User Defined Behavior Information:

    Behavior: ipv4

      Filter enable : permit

      Committed Access Rate:

        CIR 9999 (kbps), CBS 624937 (byte), EBS 0 (byte)

        Green Action: pass

        Red Action: discard

      Marking:

        Remark local precedence 4

Table 3 Command output

Field

Description

User Defined Behavior Information

User-defined behavior information.

Behavior

Name of a behavior.

Marking

Information about traffic marking.

Committed Access Rate

Information about the CAR action.

 

filter

Use filter to configure a traffic filtering action in a traffic behavior.

Use undo filter to delete the traffic filtering action.

Syntax

filter { deny | permit }

undo filter

Views

Traffic behavior view

Default command level

2: System level

Parameters

deny: Drops packets.

permit: Permits packet to pass through.

Examples

# Configure the traffic filtering action as deny in traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] filter deny

remark dot1p

Use remark dot1p to configure an 802.1p priority marking action.

Use undo remark dot1p to delete the action.

Syntax

remark dot1p 8021p

undo remark dot1p

Views

Traffic behavior view

Default command level

2: System level

Parameters

8021p: Specifies the 802.1p priority to be marked for packets, which ranges from 0 to 7.

Examples

# Configure traffic behavior database to mark matching traffic with 802.1p priority 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark dot1p 2

Related commands

·          classifier behavior

·          qos policy

·          traffic behavior

remark local-precedence

Use remark local-precedence to configure a local precedence marking action.

Use undo remark local-precedence to delete the action.

Syntax

remark local-precedence local-precedence

undo remark local-precedence

Views

Traffic behavior view

Default command level

2: System level

Parameters

local-precedence: Specifies the local precedence to be marked for packets, which ranges from 0 to 7.

Examples

# Configure traffic behavior database to mark matching traffic with local precedence 2.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] remark local-precedence 2

Related commands

·          classifier behavior

·          qos policy

·          traffic behavior

traffic behavior

Use traffic behavior to create a traffic behavior and enter traffic behavior view.

Use undo traffic behavior to delete a traffic behavior.

Syntax

traffic behavior behavior-name

undo traffic behavior behavior-name

Views

System view

Default command level

2: System level

Parameters

behavior-name: Sets a behavior name, a string of 1 to 31 characters.

Usage guidelines

A traffic behavior is a set of actions, such as priority marking and traffic policing. You provide QoS for a class of traffic by associating a traffic behavior with the class of traffic.

Examples

# Create a traffic behavior named behavior1.

<Sysname> system-view

[Sysname] traffic behavior behavior1

[Sysname-behavior-behavior1]

Related commands

·          classifier behavior

·          qos apply policy

·          qos policy

QoS policy configuration and application commands

classifier behavior

Use classifier behavior to associate a behavior with a class in a QoS policy.

Use undo classifier to remove a class from the policy.

Syntax

classifier classifier-name behavior behavior-name

undo classifier classifier-name

Views

Policy view

Default command level

2: System level

Parameters

classifier-name: Specifies a class by its name, a string of 1 to 31 characters.

behavior-name: Specifies a behavior by its name, a string of 1 to 31 characters.

Usage guidelines

You cannot remove a default class.

You can perform a set of QoS actions on a traffic class by associating a traffic behavior with the traffic class.

You can configure multiple class-behavior associations in a QoS policy, and each class can be associated with only one traffic behavior.

If the specified class or traffic behavior does not exist, the system creates a null class or traffic behavior.

Examples

# Associate traffic class database with traffic behavior test in QoS policy user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1] classifier database behavior test

[Sysname-qospolicy-user1]

Related commands

qos policy

display qos policy

Use display qos policy to display QoS policy configuration information.

Syntax

display qos policy user-defined [ policy-name [ classifier classifier-name ] ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

user-defined: Displays user-defined QoS policies.

policy-name: Specifies a QoS policy by its name, a string of 1 to 31 characters. If no policy is specified, this command displays configuration information of all the policies.

classifier-name: Specifies a class by its name, a string of 1 to 31 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display the configuration information of user-defined QoS policies.

<Sysname> display qos policy user-defined

User Defined QoS Policy Information:

 

  Policy: ipv4

   Classifier: ipv4

     Behavior: ipv4

      Filter enable : permit

      Committed Access Rate:

        CIR 9999 (kbps), CBS 624937 (byte), EBS 0 (byte)

        Green Action: pass

        Red Action: discard

      Marking:

        Remark local precedence 4

Table 4 Command output

Field

Description

Policy

Policy name.

Classifier

Class name.

A policy can contain multiple classes, and each class is associated with a traffic behavior. A class can be configured with multiple match criteria. For more information, see the traffic classifier command in "Class commands."

Behavior

Behavior associated with the class. A behavior is associated with a class. It can be configured with multiple actions. For more information, see the traffic behavior command in "Traffic behavior commands."

 

display qos policy interface

Use display qos policy interface to display information about the QoS policies applied to interfaces.

Syntax

display qos policy interface [ interface-type interface-number ] [ inbound | outbound ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by its type and number to display information about the QoS policy or policies applied to it.

inbound: Displays information about the QoS policy applied in the inbound direction of the specified interface.

outbound: Displays information about the QoS policy applied in the outbound direction of the specified interface.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display information about the QoS policy or policies applied to GigabitEthernet1/0/1.

<Sysname> display qos policy interface gigabitethernet 1/0/1

  Interface: GigabitEthernet1/0/1

  Direction: Inbound

  Policy: test

   Classifier: test

     Matched : 0(Packets) 0(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3000

     Behavior: test

      Committed Access Rate:

        CIR 1000 (kbps), CBS 62500 (byte), EBS 0 (byte)

        Green Action: pass

        Red Action: discard

        Green : 0(Packets) 0(Bytes)

        Red   : 0(Packets) 0(Bytes)

Table 5 Command output

Field

Description

Interface

Interface type and interface number.

Direction

Direction in which the policy is applied to the interface.

Policy

Name of the policy applied to the interface.

Classifier

Class name and configuration information.

Matched

Number of packets satisfying the match criteria.

Operator

Logical relationship between match criteria in the class.

Rule(s)

Match criteria in the class.

Behavior

Behavior name and configuration information.

 

qos apply policy

Use qos apply policy to apply a QoS policy to an interface.

Use undo qos apply policy to remove the applied QoS policy.

Syntax

qos apply policy policy-name { inbound | outbound }

undo qos apply policy [ policy-name ] { inbound | outbound }

Views

Interface view

Default command level

2: System level

Parameters

inbound: Specifies the inbound direction.

outbound: Specifies the outbound direction.

policy-name: Specifies a QoS policy by its name, a string of 1 to 31 characters.

Usage guidelines

All physical interfaces can have QoS policies applied.

Examples

# Apply policy USER1 in the outbound direction of GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos apply policy USER1 outbound

qos policy

Use qos policy to create a policy and enter policy view.

Use undo qos policy to delete a policy.

Syntax

qos policy policy-name

undo qos policy policy-name

Views

System view

Default command level

2: System level

Parameters

policy-name: Specifies a QoS policy by its name, a string of 1 to 31 characters.

Usage guidelines

To use the undo qos policy command to delete a policy that has been applied to an interface, you must first remove it from the interface.

Examples

# Define QoS policy user1.

<Sysname> system-view

[Sysname] qos policy user1

[Sysname-qospolicy-user1]

Related commands

·          classifier behavior

·          qos apply policy

 


Priority mapping table commands

display qos map-table

Use display qos map-table to display the configuration of a priority mapping table.

Syntax

display qos map-table [ dot11e-lp | dot1p-lp | dscp-lp | lp-dot11e | lp-dot1p | lp-dscp ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

dot11e-lp: Specifies the 802.11e-to-local mapping table.

dot1p-lp: Specifies the 802.1p-to-local mapping table.

dscp-lp: Specifies the DSCP-to-local mapping table.

lp-dot11e: Specifies the local-to-802.11e mapping table.

lp-dot1p: Specifies the local-to-802.1p mapping table.

lp-dscp: Specifies the local-to-DSCP mapping table.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If no priority mapping table is specified, this command displays the configuration information of all priority mapping tables.

Examples

# Display the configuration of the 802.1p-to-local mapping table.

<Sysname> display qos map-table dot1p-lp

MAP-TABLE NAME: dot1p-lp   TYPE: pre-define

IMPORT  :  EXPORT

   0    :    2

   1    :    0

   2    :    1

   3    :    3

   4    :    4

   5    :    5

   6    :    6

   7    :    7

Table 6 Command output

Field

Description

MAP-TABLE NAME

Name of the priority mapping table.

TYPE

Type of the priority mapping table.

IMPORT

Input values of the priority mapping table.

EXPORT

Output values of the priority mapping table.

 

Related commands

qos map-table

import

Use import to configure a mapping from one or multiple input values to an output value.

Use undo import to restore the specified or all mappings to the default mappings.

Syntax

import import-value-list export export-value

undo import { import-value-list | all }

Views

Priority mapping table view

Default command level

2: System level

Parameters

import-value-list: Specifies a list of input values.

export-value: Specifies the output value.

all: Deletes all the mappings in the priority mapping table.

Examples

# Configure the dot1p-lp mapping table to map 802.1p priority values 4 and 5 to local precedence 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-lp

[Sysname-maptbl-dot1p-lp] import 4 5 export 1

Related commands

display qos map-table

qos map-table

Use qos map-table to enter the specified priority mapping table view.

Syntax

qos map-table { dot11e-lp | dot1p-lp | dscp-lp | lp-dot11e | lp-dot1p | lp-dscp }

Views

System view

Default command level

2: System level

Parameters

dot11e-lp: Specifies the 802.11e-to-local mapping table.

dot1p-lp: Specifies the 802.1p-to-local mapping table.

dscp-lp: Specifies the DSCP-to-local mapping table.

lp-dot11e: Specifies the local-to-802.11e mapping table.

lp-dot1p: Specifies the local-to-802.1p mapping table.

lp-dscp: Specifies the local-to-DSCP mapping table.

Examples

# Enter the 802.1p-to-local mapping table view.

<Sysname> system-view

[Sysname] qos map-table dot1p-lp

[Sysname-maptbl-in-dot1p-lp]

Related commands

display qos map-table

Port priority commands

qos priority

Use qos priority to change the port priority of an interface.

Use undo qos priority to restore the default.

Syntax

qos priority priority-value

undo qos priority

Default

The port priority is 0.

Views

Interface view

Default command level

2: System level

Parameters

priority-value: Specifies the port priority value in the range of 0 to 7.

Usage guidelines

If a WLAN-BSS interface is being used, you cannot modify its port priority. To do so, you must log off all online users to stop the service the interface is providing.

Examples

# Set the port priority of interface GigabitEthernet 1/0/1 to 2.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos priority 2

# Set the port priority of interface WLAN-BSS 1 to 2.

<Sysname> system-view

[Sysname] interface wlan-bss 1

[Sysname-WLAN-BSS1] qos priority 2

Port priority trust mode commands

display qos trust interface

Use display qos trust interface to display priority trust mode and port priority information on an interface.

Syntax

display qos trust interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If no interface is specified, the command displays priority trust mode and port priority information for all interfaces.

Examples

# Display the priority trust mode and port priority settings of GigabitEthernet 1/0/1.

<Sysname> display qos trust interface gigabitethernet 1/0/1

Interface: GigabitEthernet1/0/1

 Port priority trust information

  Port priority: 4

  Port priority trust type: dot1p

Table 7 Command output

Field

Description

Interface

Interface type and interface number.

Port priority

Port priority set for the interface.

Port priority trust type

Priority trust mode on the interface: auto, dot11e, dot1p, or dscp, or untrust. If the trust mode is untrust, port priority is used for priority mapping.

 

qos trust

Use qos trust to configure an interface to use a particular priority field carried in packets for priority mapping.

Use undo qos trust to restore the default priority trust mode.

Syntax

qos trust { auto | dot11e | dot1p | dscp }

undo qos trust

Default

The port priority is trusted.

Views

Interface view

Default command level

2: System level

Parameters

auto: Uses the priority in incoming packets for priority mapping. For Layer 2 packets, the 802.1p priority is used. For Layer 3 packets, the IP precedence is used.

dot11e: Uses the 802.11e priority in incoming packets for priority mapping. This keyword is available only on WLAN-BSS interfaces.

dot1p: Uses the 802.1p priority in incoming packets for priority mapping.

dscp: Uses the DSCP value in incoming packets for priority mapping.

Usage guidelines

If a WLAN-BSS interface is being used, you cannot modify its priority trust mode. To do so, you must log off all online users to stop the service the interface is providing.

Examples

# Set the trusted packet priority type to 802.1p priority on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos trust dot1p

# Set the trusted packet priority type to 802.11e priority on WLAN-BSS 1.

<Sysname> system-view

[Sysname] interface wlan-bss 1

[Sysname-WLAN-BSS1] qos trust dot11e

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网