Part 7 - ACL - QoS

03-Priority Mapping Configuration Commands

Chapters Download  (37.81 KB)

03-Priority Mapping Configuration Commands


Priority Mapping Table Configuration Commands

display qos map-table

Syntax

display qos map-table [ dot1p-dp | dot1p-lp | dscp-dot1p| dscp-dp | dscp-dscp ]

View

Any view

Default Level

1: Monitor level

Parameters

dot1p-dp: 802.1p-to-drop priority mapping table.

dot1p-lp: 802.1p-to-local priority mapping table.

dscp-dot1p: DSCP-to-802.1p priority mapping table.

dscp-dp: DSCP-to-drop priority mapping table.

dscp-dscp: DSCP-to-DSCP priority mapping table.

Description

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

If no priority mapping table is specified, the configuration information of all priority mapping tables is displayed.

Related commands: qos map-table.

Examples

# Display the configuration information of the 802.1p-to-drop priority mapping table.

<Sysname> display qos map-table dot1p-dp

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

IMPORT  :  EXPORT

   0    :    0

   1    :    0

   2    :    0

   3    :    0

   4    :    0

   5    :    0

   6    :    0

   7    :    0     

Table 1-1 display qos map-table command output description

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

 

import

Syntax

import import-value-list export export-value

undo import { import-value-list | all }

View

Priority mapping table view

Default Level

2: System level

Parameters

import-value-list: List of input values.

export-value: Output value.

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

Description

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

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

Related commands: display qos map-table, display qos map-table color.

Examples

# Configure the 802.1p-to-drop priority mapping table to map 802.1p priority values 4 and 5 to drop precedence value 1.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

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

qos map-table

Syntax

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

View

System view

Default Level

2: System level

Parameters

dot1p-dp: 802.1p-to-drop priority mapping table.

dot1p-lp: 802.1p-to-local priority mapping table.

dscp-dot1p: DSCP-to-802.1p priority mapping table.

dscp-dp: DSCP-to-drop priority mapping table.

dscp-dscp: DSCP-to-DSCP priority mapping table.

Description

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

Related commands: display qos map-table.

Examples

# Enter the 802.1p-to-drop priority mapping table view.

<Sysname> system-view

[Sysname] qos map-table dot1p-dp

[Sysname-maptbl-dot1p-dp]

Port Priority Configuration Commands

qos priority

Syntax

qos priority priority-value

undo qos priority

View

Interface view, port group view

Default Level

2: System level

Parameters

priority-value: Port priority value. The port priority is local precedence, which defaults to 0 and ranges from 0 to 7.

Description

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

Use the undo qos priority command to restore the default.

By default, the port priority is 0.

In interface view, the setting is effective on the current interface only. In port group view, the setting is effective on all the ports in the port group.

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

Per-Port Priority Trust Mode Configuration Commands

display qos trust interface

Syntax

display qos trust interface [ interface-type interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

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

Description

Use the display qos trust interface command to display priority trust mode and port priority information of an interface.

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

Examples

# Display the priority trust mode and port priority settings of interface Ethernet 1/1 (on a single port priority-type device).

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

Interface: GigabitEthernet1/0/1

 Port priority information

  Port priority: 0

  Port priority trust type: untrust 

Table 1-2 display qos trust interface command output description

Field

Description

Interface

Interface type and interface number

Port priority

The port priority set for the interface

Port priority trust type

Priority trust mode on the interface, which can be:

l  dscp: indicates that the DSCP precedence value of the received packets is used for priority mapping

l  dot1p: indicates that the 802.1p priority of the received packets is used for priority mapping

l  untrust: indicates that the port priority is used for priority mapping

 

qos trust

Syntax

qos trust { dot1p | dscp }

undo qos trust

View

Interface view, port group view

Default Level

2: System level

Parameters

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

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

Description

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

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

By default, the port priority is used for priority mapping.

When packets enter the device, the device assigns a set of parameters (including 802.1p priority, DSCP values, IP precedence, local precedence, and drop precedence) to the packets as configured.

The local precedence and drop precedence are defined as follows:

l   A local precedence is locally significant and corresponds to an output queue.

l   A drop precedence is used for packet drop. The value 2 corresponds to red packets, 1 corresponds to yellow packets, and 0 corresponds to green packets.

Examples

# Configure interface GigabitEthernet 1/0/1 to use the 802.1p priority in incoming packets for priority mapping.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

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

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.