
27
Changing the port priority of an interface
Follow these steps to change the port priority of an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter
interface
view
interface
interface-type
interface-number
Enter
interface
view or port
group view
Enter port
group view
port-group manual
port-group-name
Use either command
Settings in interface view take effect on
the current interface. Settings in port
group view take effect on all ports in the
port group.
Set the port priority of the
interface
qos priority
priority-value
Required
The default port priority is 0.
Displaying and maintaining priority mapping
To do…
Use the command…
Remarks
Display priority mapping
table configuration
display
qos
map-table
[
dot1p-dot1p
|
dot1p-dscp
|
dot1p-lp
|
dscp-dot1p
|
dscp-dscp
|
dscp-lp
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the trusted packet
priority type on a port
display qos trust
interface
[
interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Priority mapping configuration examples
Priority mapping configuration example
Network requirements
As shown in
, a company uses a switch named Device to interconnect all its departments. The
network is described as follows:
•
The marketing department connects to GigabitEthernet 1/0/1 of Device, which sets the 802.1p
priority of traffic from the marketing department to 3.
•
The R&D department connects to GigabitEthernet 1/0/2 of Device, which sets the 802.1p priority
of traffic from the R&D department to 4.
•
The management department connects to GigabitEthernet 1/0/3 of Device, which sets the 802.1p
priority of traffic from the management department to 5.
Configure port priority, 802.1p-to-local priority mapping table, and priority marking to implement the
plan in
.