277
Parameters:
<rate-kbps>
is the average baud rate (kb/s) of classified traffic, ranging
from 1,000 to 10,000,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)#class c1
Switch(Config-Policy-Class)#police 20000 2000 exceed-action drop
Switch(Config-Policy-Class)#exit
Switch(Config-PolicyMap)#exit
9.1.3.12 police aggregate
Command:police aggregate <aggregate-policer-name>
no police aggregate <aggregate-policer-name>
Function:
Applies a policy set to classified traffic; the “
no police aggregate
<aggregate-policer-name>
“ command deletes the specified policy set.
Parameters: <aggregate-policer-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)#class c1
Switch(Config--Policy-Class)#police aggregate agg1
Switch(Config--Policy-Class)#exit
Switch(Config-PolicyMap)#exit
9.1.3.13 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