mac

Commands for QoS
251
set-cos-transmit sets the CoS value of the L2 packets
Default: No policy action; the default action of conform-action is transmit, while that of
exceed-action is drop.
Command mode: Policy class map configuration Mode
Usage Guide:
set and policypolicy aggregate are selected and have the same action in Policy
Map, then the action selected by policy will cover the action of set.
Example: In the policy class table configuration mode, set the CIR as 1000, CBS as
2000, and the action triggered by exceeding CIR as transmit without changing the
messages.
Switch(config)#class-map cm
Switch(config-classmap-cm)#match cos 0
Switch(config-classmap-cm)#exit
Switch(config)#policy-map 1
Switch(config-policymap-1)#class cm
Switch(config-policymap-1-class-cm)#policy 1000 2000 exceed-action transmit
18.21 policy aggregate
This command is not supported by switch.
18.22 policy-map
Command: policy-map <policy-map-name>
no policy-map <policy-map-name>
Function: Creates a policy map and enters the policy map mode; the no policy-map
<policy-map-name>” command deletes the specified policy map.
Parameters: <policy-map-name> is the policy map name.
Default: No policy map is configured by default.
Command mode: Global Mode
Usage Guide: Policy class map opertion can be done in policy map configuration mode.
Example: Creating and deleting a policy map named “p1”.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#exit
Switch(config)#no policy-map p1