Detailed configuration process for Cisco 3550 Speed Limit

Source: Internet
Author: User

I. Network Description
PC1 is connected to Cisco3550 F0/1 at a rate of 1 M;
PC1 is connected to Cisco3550 F0/2 at a rate of 2 M;
The G0/1 of Cisco3550 is the exit.
Ii. Detailed configuration process
Note: Each interface supports only one policy in each direction. One policy can be used for multiple interfaces. Therefore, the download speed limit of all PCs should be defined in the same policy (policy-map user-down in this example ), the difference between different PC rates is defined in Class-map.
1. Start qos on the vswitch
Switch (config) # mls qos // start QOS on the Switch
2. Define the PC1 (10.10.1.1) and PC2 (10.10.2.1) access control lists respectively.
Switch (config) # access-list 10 permit 10.10.1.0 0.0.255 // control the upstream traffic of pc1
Switch (config) # access-list 100 permit any 10.10.1.0 0.0.255 // control downstream pc1 traffic
Switch (config) # access-list 11 permit 10.10.2.0 0.0.255 // control the upstream traffic of pc2
Switch (config) # access-list 111 permit any 10.10.2.0 0.0.255 // control downstream traffic of pc2
3. Define the class and bind it to the access control list defined above
Switch (config) # class-map user1-up // defines the PC1 upstream class and binds the access list 10
Switch (config-cmap) # match access-group 10
Switch (config-cmap) # exit
Switch (config) # class-map user2-up
Switch (config-cmap) # match access-group 11 // defines the upstream class of PC2 and binds it to access list 10
Switch (config-cmap) # exit
Switch (config) # class-map user1-down
Switch (config-cmap) # match access-group 100 // define the downstream class of PC1 and bind it to access list 100
Switch (config-cmap) # exit
Switch (config) # class-map user2-down
Switch (config-cmap) # match access-group 111 // define the downstream class of PC2 and bind it to access list 111
Switch (config-cmap) # exit
4. define a policy and bind the class defined above to the policy
Switch (config) # policy-map user1-up // defines the PC1 uplink rate as 1 M
Switch (config-pmap) # class user1-up
Switch (config-pmap-c) # trust dscp
Switch (config-pmap-c) # police 1024000 1024000 exceed-action drop
Switch (config) # policy-map user2-up // defines the PC2 uplink rate as 2 M
Switch (config-pmap) # class user2-up
Switch (config-pmap-c) # trust dscp
Switch (config-pmap-c) # police 2048000 1024000 exceed-action drop
Switch (config) # policy-map user-down
Switch (config-pmap) # class user1-down
Switch (config-pmap-c) # trust dscp
Switch (config-pmap-c) # police 1024000 1024000 exceed-action drop
Switch (config-pmap-c) # exit
Switch (config-pmap) # class user2-down
Switch (config-pmap-c) # trust dscp
Switch (config-pmap-c) # police 2048000 1024000 exceed-action drop
Switch (config-pmap-c) # exit
5. apply policies on interfaces
Switch (config) # interface f0/1
Switch (config-if) # service-policy input user1-up
Switch (config) # interface f0/2
Switch (config-if) # service-policy input user2-up
Switch (config) # interface g0/1
Switch (config-if) # service-policy input user-down


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.