qos trust
Syntax
qos trust {none | cos | dscp} no qos trust
Description
Sets the trust mode. Trust mode determines whether CoS or DSCP values are used to assign local priority values to ingress packets. CoS values are taken from the CoS map, and DSCP values are taken from the DSCP map.
In theconfig
context:
- This command sets the trust mode that is globally applied to all interfaces that do not have a trust mode configured.
- The
no
form of this command restores all interfaces that do not currently have a trust mode configured to the default setting (none
).
In theconfig-if
context:
- This command sets the trust mode override for a specific interface.
- The
no
form of this command clears a trust mode override. The interface then uses the global setting. This is the only way to remove a trust mode override.
Command context
config
config-if
Parameters
-
none
-
Ignore all packet headers. Ingress packets are assigned the priority value configured for CoS map value
0
. Default.NOTE:In the
config-if
context, the commandqos cos
can be used to remark packets whennone
is set as the trust mode. -
cos
-
For 802.1 VLAN-tagged packets, use the priority code point field value from the outermost VLAN header as the index into the CoS map. If the packet is untagged, use the priority configured for CoS map value
0
. -
dscp
-
For IP packets, used the code point field value as the index into the DSCP map.
For non-IP packets with 802.1 VLAN tags, use the priority code point field value of the outermost tag header as the index into the CoS map. For untagged, non-IP packets, use the priority configured for CoS map value
0
.
Authority
Administrators or local user group members with execution rights for this command.
Example
设置全局信任模式dscp, which is applied to all interfaces that do not already have an individual trust mode configured. An override is then applied to interface2/2/2, and LAG 100, setting trust mode tocos:
switch(config)#qos trust dscpswitch(config)#interface 2/2/2switch(config-if)#qos trust cosswitch(config-if)#接口延迟100switch(config-if)#qos trust cos