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.
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. |
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
- If the trust upstream none command is executed for incoming packets on an interface and the interface priority is executed, the device adds a VLAN tag and the interface priority to packets and sends the packets to queues based on their port priorities.
- 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.