Accton Technology ES4626 Switch User Manual


 
318
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
13.1.2.2.7 police
Command: police <rate-kbps> <burst-kbyte> [exceed-action {drop |
policed-dscp-transmit}]
no police <rate-kbps> <burst-kbyte> [exceed-action {drop |
policed-dscp-transmit}]
Function: Configure a policy to a classified traffic; the “no police <rate-kbps>
<burst-kbyte> [exceed-action {drop | policed-dscp-transmit}]” command
deletes the specified policy.
Parameter: <rate-kbps> is the average baud rate (in kb/s) of classified traffic, range 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: Set the bandwidth for packets that matching c1 class rule to 20 MB/s, 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
13.1.2.2.8 mls qos aggregate-policer
Command: mls qos aggregate-policer <aggregate-policer-name> <rate-kbps>
<burst-kbyte> exceed-action {drop |policed-dscp-transmit}