18.
Quality of Service
MN700004 Rev 01
223
•
To view the priority assignment for the MAC addresses, use the
show mac-address-
table
command in Privileged (Enable) mode.
•
To clear the MAC addresses with the priority assignment you can also use the
clear
mac-address-table
command in Privileged (Enable) mode and the
no mac-address-
table
command in Global Configuration mode.
By default, the MAC address priority is 0.
Command Syntax
device-name
(config)#
qos mac
{
static
|
secure
}
HH:HH:HH:HH:HH:HH
vlan
<
vlan-id
>
UU/SS/PP
priority
<
priority
>
device-name
(config)#
no qos mac
[[
static
|s
ecure
] [
HH:HH:HH:HH:HH:HH
] [
vlan
<
vlan-id
>] [
UU/SS/PP
]]
Argument Description
static
Static MAC address
secure
Secured MAC address, used for Port Security.
HH:HH:HH:HH:HH:HH
6-byte MAC address represented hexadecimally.
vlan <vlan-id>
VLAN ID value (MAC address can be learned on several VLANs) in
range of <1-4094>.
UU/SS/PP
Interface's unit/slot/port number.
priority <priority>
Priority given for the MAC address in range of <0-7>.
Example
In the following example, we define two static MAC addresses on the same VLAN and
interface. The configured priorities give preference to packets with destination MAC address
00:01:02:03:04:06 over the packets with destination MAC address 00:01:02:03:04:05.
device-name
(config)#
qos mac static
00:01:02:03:04:05
vlan
1 1/1/5
priority 3
device-name
(config)#
qos mac static
00:01:02:03:04:06
vlan
1 1/1/5
priority 6
device-name(config)#
end
device-name#
show mac-address-table
===============+==================+=============+==========+=========
# | VID | Mac | PORT | STATUS |PRIORITY|
----+----------+------------------+-------------+----------+--------+
1 | 0001 |00:01:02:03:04:05 | 1/1/5 | static | 3 |
2 | 0001 |00:01:02:03:04:06 | 1/1/5 | static | 6 |
3 | 0001 |00:02:b3:1a:bb:87 | 1/1/3 | dynamic | 0 |
…
46 | 0001 |00:c1:26:01:1a:6d | 1/1/3 | dynamic | 0 |
Configuring Drop Level Priority
The
qos drop-level
command, in Global Configuration mode, specifies the color mark per
QoS priority. The
no
form of this command resets the priority color marking to the default
color.
In a congestion condition within the same queue, color marks define which packets are to be
discarded. Color marks express the precedence level for discarding packets.
By default, the drop level is Green.