Assigning a priority based on IP address

This option assigns an 802.1p priority to all IPv4 packets having the specified IP address as either a source or destination. (If both match, the priority for the IP destination address has precedence.)

Syntax (IPv4):


qos device-priority <ipv4-address|ipv4-address/mask-length> priority <0-7>

Syntax (IPv6)


qos device-priority <ipv6-address|ipv6-address/mask-length> priority <0-7>

Configures an 802.1p priority for outbound packets having the specified IP address. This priority determines the packet’s queue in the outbound port to which it is sent. If the packet leaves the switch on a tagged port, it carries the 802.1p priority with it to the next downstream device. (Default: Disabled)

Syntax:


no qos device-priority <ip-address>

Removes the specified IP device-priority QoS classifier and resets the priority for that VLAN to No-override.

Syntax:


show qos device-priority

Displays a listing of all IP device-priority QoS classifiers currently in the running-config file.

For example, configure and list the 802.1p priority for packets carrying the following IP addresses:

IP address

802.1p priority

10.28.31.1

7

10.28.31.130

5

10.28.31.100

1

10.28.31.101

1

switch(config)# qos device-priority 10.28.31.1 priority 7
switch(config)# qos device-priority 10.28.31.130 priority 5
switch(config)# qos device-priority 10.28.31.100 priority 1
switch(config)# qos device-priority 10.28.31.101 priority 1

  Device priorities

  Device Address                                Apply rule | DSCP  Priority
  --------------------------------------------  ---------- + ------ -----------
  10.28.31.1                                    Priority   |        7
  10.28.31.130                                  Priority   |        5
  10.28.31.100                                  Priority   |        1
  10.28.31.101                                  Priority   |        1