1, limit the user's download 5m
(1), for a class speed limit
Switch (config) #access-list 101 permit ip any host 10.10.10.100
Switch (config) #class-map match-all down1
Switch (CONFIG-CMAP) #match Access-group 101
Switch (config) #policy-map down
Switch (config-pmap) #class down1
Switch (config-pmap-c) #police 5000000 1000000 exceed-action Drop
Switch (config) #int G0/2---> Allied ports
Switch (config-if) #service-policy input down---> Restricted download
(2), for multiple class speed limit
Switch (config) #access-list 101 permit ip any host 10.10.10.100
Switch (config) #access-list 102 permit ip any host 10.10.10.101 #这里两个访问控制列表合并就是针对多个IP地址限速.
Switch (config) #class-map match-all down1
Switch (CONFIG-CMAP) #match Access-group 101
Switch (config) #class-map match-all down2
Switch (CONFIG-CMAP) #match Access-group 102
Switch (config) #policy-map down
Switch (config-pmap) #class down1
Switch (config-pmap-c) #police 5000000 1000000 exceed-action Drop
Switch (config-pmap) #class down2
Switch (config-pmap-c) #police 5000000 1000000 exceed-action Drop
Switch (config) #int G0/2---> Allied ports
Switch (config-if) #service-policy input down---> Restricted download
2, limit the user's upload 5m
(1), for IP address speed limit
Switch (config) #access-list 101 Permit IP host 10.10.10.100 any
Switch (config) #class-map match-all Output-class
Switch (CONFIG-CMAP) #match Access-group 101
Switch (config) #policy-map 5m
Switch (config-pmap) #class Output-class
Switch (config-pmap-c) #police 5000000 1000000 exceed-action Drop
Switch (config) #int f0/1---> Xia lian port
Switch (config-if) #service-policy input 5m---> restricted upload
(2), conventional speed limit
Switch (config) #policy-map 5m
Switch (config-pmap) #class Class-default
Switch (config-pmap-c) #police 5000000 1000000 exceed-action Drop
Switch (config) #int f0/1---> Xia lian port
Switch (config-if) #service-policy input 5m---> restricted upload
This article is from the "Struggle" blog, please be sure to keep this source http://qiangzuibang.blog.51cto.com/2140444/1627361
Cisco 2960 Speed Limit