Cisco Systems SPS224G4 Switch User Manual


 
QoS Commands
trust
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 278
23
User Guidelines
Use this command to distinguish the quality of service (QoS) trust behavior
for certain traffic from others. For example, incoming traffic with certain
DSCP values can be trusted. Configure a class map to match and trust the
DSCP values in the incoming traffic.
Trust values set with this command supersede trust values set on specific
interfaces with the qos trust interface configuration command.
The trust command is mutually exclusive with set policy-map class
configuration command within the same policy map.
Policy maps that contain set or trust policy-map class configuration
commands or with access control list (ACL) classification to an egress
interface cannot be attached by using the service-policy interface
configuration command.
If trust cos is specified, QoS maps a packet to a queue to the received or
default port CoS value and the CoS-to-queue map.
If trust dscp is specified, QoS maps the packet by using the DSCP value
from the ingress packet.
If tcp-udp-port is specified, QoS maps the packet to queue by using the
TCP\UDP port value from the ingress packet and the tcp-udp-port-to-
queue map.
Example
The following example configures the trust state for a class called ‘class1’ in a
policy map called ‘policy1’.
Console (config)# policy-map policy1
Console (config-pmap)# class class1
Console (config-pmap-c)# trust cos dscp