DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Specifies the port to be trusted, and enters interface configuration mode.
Valid interfaces are physical ports.
interface interface-id
Example:
Switch(config)# interface
Step 2
gigabitethernet 1/0/2
Configures the port trust state.mls qos trust [cos | dscp | ip-precedence]
Step 3
Example:
Switch(config-if)# mls qos trust
By default, the port is not trusted. If no keyword is specified, the default is
dscp.
The keywords have these meanings:
cos
• cos—Classifies an ingress packet by using the packet CoS value. For
an untagged packet, the port default CoS value is used. The default
port CoS value is 0.
• dscp—Classifies an ingress packet by using the packet DSCP value.
For a non-IP packet, the packet CoS value is used if the packet is
tagged; for an untagged packet, the default port CoS is used. Internally,
the switch maps the CoS value to a DSCP value by using the
CoS-to-DSCP map.
• ip-precedence—Classifies an ingress packet by using the packet
IP-precedence value. For a non-IP packet, the packet CoS value is used
if the packet is tagged; for an untagged packet, the default port CoS is
used. Internally, the switch maps the CoS value to a DSCP value by
using the CoS-to-DSCP map.
To return a port to its untrusted state, use the no mls qos trust interface
configuration command.
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 4
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
575
How to Configure QoS