qos priority

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

Use undo qos priority to restore the default.

Syntax

qos priority { dot1p | dp | dscp | exp | lp } priority-value

undo qos priority { dot1p | dp | dscp | exp | lp }

Default

The default is 2 for local precedence and 0 for drop priority, and the other priorities do not have defaults.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

priority-value: Specifies the port priority value. See Table 34 for the value range for each type of port priority.

Table 34: Value ranges for different types of port priority

Port priority type

Value range

Remarks

802.1p

0 to 7

N/A

DSCP

0 to 63

N/A

EXP

0 to 7

N/A

Drop priority

0 to 2

A packet with a higher drop priority value is dropped more preferentially.

Local precedence

0 to 7

A packet with a higher local precedence value is assigned to a queue with a higher priority, and has a higher scheduling priority.

Usage guidelines

You can assign one value to each type of port priority on an interface. For each type of port priority, the most recent configuration takes effect.

Examples

# Set the DSCP port priority of interface GigabitEthernet 3/0/1 to 20.

<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] qos priority dscp 20

Related commands

display qos trust interface