Assigning an 802.1p priority for a global TCP/UDP classifier

To mark matching TCP or UDP packets with an 802.1p priority, enter the following command:


qos [udp-port | tcp-port] [ipv4 | ipv6 | ip-all] [port-number | range start end] priority 0 - 7

Marks an 802.1p priority in outbound packets with the specified TCP or UDP application-port number, where:


Marks only IPv4 packets (default).


Marks only IPv6 packets.


Marks all IP traffic (both IPv4 and IPv6 packets).


TCP/UDP port number from 1 to 65535.

range start end

Marks a range of TCP/UDP ports. If you specify a range, the minimum port number must precede the maximum port number in the range.

priority 0 - 7

Marks the specified 802.1p priority in matching TCP or UDP packets.

The 802.1p priority determines the packet's queue in the outbound port on the switch. If the packet leaves the switch on a tagged VLAN port, it carries the 802.1p priority with it to the next downstream device.

Default: Disabled — No 802.1p priority is assigned.

The no form of the command deletes the specified UDP or TCP port number or range of port numbers as a QoS classifier.


If you have specified a range of port numbers, you must specify the entire range in the no command; you cannot remove part of a range.