< Home

port priority

Function

The port priority command configures the priority for an interface.

The undo port priority command restores the default priority of an interface.

By default, the priority of an interface is 0.

Format

port priority priority-value

undo port priority

Parameters

Parameter

Description

Value

priority-value

Specifies the priority of an interface.

The value is an integer that ranges from 0 to 7. The default value is 0. A larger value indicates a higher priority of an interface.

Views

Ethernet interface view, MultiGE interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

The 802.1p priority is determined by the 3-bit priority 802.1p field contained in a VLAN tag. The 802.1p priority is used to ensure QoS in the DiffServ model.

If an interface receives untagged packets, the interface priority is added to packets during the internal forwarding.

If an interface is configured to trust the 802.1p priority using the trust 8021p command, the interface adds the 802.1p priority to the received untagged packets. The device then searches for the internal priority (represented by a PHB and color) mapping the 802.1p priority and marks packets with the internal priority.

Precautions

  • The port priority command is invalid if the current interface is a member interface of an Eth-Trunk.
  • If you run the port priority command multiple times in the same interface view, only the latest configuration takes effect.
  • When an interface switches to Layer 3 mode through the undo portswitch command, you cannot configure a priority for the Ethernet interface. This Ethernet interface uses priority 0.

Example

# Set the priority of GE0/0/1 to 1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port priority 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >