7-2
To do… Use the command… Remarks
Set the IP precedence for
packets
remark ip-precedence
ip-precedence-value
Optional
Set the local precedence
for packets
remark local-precedence
local-precedence
Optional
Exit behavior view quit —
Create a policy and enter
policy view
qos policy policy-name —
Associate the class with
the traffic behavior in the
QoS policy
classifier tcl-name behavior
behavior-name
—
Exit policy view quit —
To an interface Applying the QoS policy to an interface —
To online
users
Applying the QoS policy to online
users
—
To a VLAN Applying the QoS policy to a VLAN —
Apply the
QoS
policy
Globally
Applying the QoS policy globally —
Display the priority marking
configuration
display traffic behavior user-defined
[ behavior-name ]
Optional
Available in any view
Priority Marking Configuration Example
Priority Marking Configuration Example
Network requirements
As shown in Figure 7-1, the enterprise network of a company interconnects hosts with servers through
Device. The network is described as follows:
z Host A and Host B are connected to GigabitEthernet 1/0/1 of Device.
z The data server, mail server, and file server are connected to GigabitEthernet 1/0/2 of Device.
Configure priority marking on Device to satisfy the following requirements:
Traffic source Destination Processing priority
Host A, B Data server High
Host A, B Mail server Medium
Host A, B File server Low