272
Switch(config)#class-map c1
Switch(config-ClassMap)#match ip precedence 0 1
Switch(config-ClassMap)#exit
9.1.3.3 set
Command:set {ip dscp <new-dscp> | ip precedence <new-precedence>|ipv6 dscp
<new-dscp> | ipv6 flowlabel <new-flowlabel>|cos<new cos>}
no set {ip dscp | ip precedence|ipv6 dscp | ipv6 flowlabel |cos<new
cos>}
Function:
Assign a new DSCP, IP Precedence, IPv6 DSCP or IPv6 FL for the classified
traffic; the “no” form of this command delete assigning the new values
Parameter:<new-dscp>
new DSCP value;
<new-precedence>
new IP IPv4
Precedence;
<new-flowlabel>
new IPv6 FL value
<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 the c1 class rule to 3.
Switch(config)#policy-map p1
Switch(config-PolicyMap)#class c1
Switch(config--Policy-Class)#set ip precedence 3
Switch(config--Policy-Class)#exit
Switch(config-PolicyMap)#exit
9.1.3.4 class-map
Command:class-map <class-map-name>
no class-map <class-map-name>
Function:
Creates a class map and enters class map mode; the “
no class-map
<class-map-name>
“ command deletes the specified class map.
Parameters: <class-map-name>
is the class map name
.
Default:
No class map is configured by default.
Command mode:
Global Mode
Example:
Creating and then deleting a class map named “c1”.
Switch(Config)#class-map c1
Switch(Config-ClassMap)# exit
Switch(Config)#no class-map c1
9.1.3.5 mls qos