159
no policy <rate-kbps> <burst-kbyte> [ exceed-action { drop |
policed-dscp-transmit } ]
Function: Configures a policy to a classified traffic; the no command deletes the specified
policy.
Parameters: <rate-kbps> is the average baud rate (kb/s) of classified traffic, ranging
from 1 to 10,000,000; <burst-kbyte> is the burst baud rate (kbyte) of classified traffic,
ranging from 1 to 1000,000; exceed-action drop means drop packets when specified
speed is exceeded; exceed-action policed-dscp-transmit specifies to mark down
packet DSCP value according to policed-dscp mapping when specified speed is
exceeded.
Default: There is no policy by default.
Command mode: Policy class map configuration mode
Usage Guide: The ranges of <rate-kbps> and <burst-kbyte> are quite large, if the setting
exceeds the actual speed of the port, the policy map applying this policy will not bind to
switch ports.
Example: Setting the bandwidth for packets that matching c1 class rule to 20 Mbps, with a
burst value of 2 MB, all packets exceed this bandwidth setting will be dropped.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c1
Switch(Config-PolicyMap-p1-Class-c1)#policy 20000 2000 exceed-action drop
Switch(Config-PolicyMap-p1-Class-c1)#exit
Switch(Config-PolicyMap-p1)#exit
13.10 policy aggregate
Command: policy aggregate <aggregate-policy-name>
no policy aggregate <aggregate-policy-name>
Function: Applies a policy set to classified traffic; the ―no policy aggregate
<aggregate-policy-name>‖ command deletes the specified policy set.
Parameters: <aggregate-policy-name> is the policy set name.
Default: No policy set is configured by default.
Command mode: Policy class map configuration Mode
Usage Guide: The same policy set can be referred to by different policy class maps.
Example: Appling a policy set agg1 to packets satisfying c1 class rule.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c1
Switch(Config-PolicyMap-p1-Class-c1)#policy aggregate agg1