mac
Commands for QoS
253
18.25 set
Command: set {ip dscp <new-dscp> | ip precedence <new-precedence> | internal
priority <new-inp> | drop precedence <new-dp> | cos <new-cos>}
no set {ip dscp | ip precedence | internal priority | drop precedence |
cos}
Function: Assign a new DSCP, IP Precedence for the classified traffic; the no form of
this command delete assigning the new values.
Parameter: ip dscp <new-dscp> new DSCP value, do not distinguish v4 and v6.
ip precedence <new-precedence> new IP Precedence.
cos <new cos> new COS value.
Default: Not assigning by default.
Command Mode: Policy Class-map Mode
Usage Guide: Only the classified traffic which matches the matching standard will be
assigned with the new values.
Example: Set the IP Precedence of the packets matching c1 class rule to 3.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c1
Switch(Config-PolicyMap-p1-Class-c1)#set ip precedence 3
Switch(Config-PolicyMap-p1-Class-c1)#exit
Switch(Config-PolicyMap-p1)#exit
18.26 show class-map
Command: show class-map [<class-map-name>]
Function: Displays class map of QoS.
Parameters: <class-map-name> is the class map name.
Default: N/A.
Command mode: Admin Mode.
Usage Guide: Displays all configured class-map or specified class-map information.
Example:
Switch # show class-map
Class map name:c1, used by 1 times
match acl name:1
Displayed information
Explanation
Class map name:c1
Name of the Class map










