Cisco 2960 Speed limit

Source: Internet
Author: User

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


Note:

If multiple IP addresses share a class in an Access control list, share the uploaded or downloaded 5M bandwidth, and if different classes, different access control lists enjoy the corresponding upload or download bandwidth for each class.

This article is from the "Struggle" blog, please be sure to keep this source http://qiangzuibang.blog.51cto.com/2140444/1627480

Cisco 2960 Speed limit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.