Cisco 3560 vswitch Port Speed Limit

Source: Internet
Author: User

Cisco 3560 vswitch Port Speed Limit
1. The network indicates that 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 egress. 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 Switch (config) # mls qos // start QOS on the Switch 2. Define PC1 (10.10.1.1) and PC2 (10.10.2.1) respectively) access Control list Switch (config) # access-list 10 permit 10.10.1.0 0.0.255 // control pc1 upstream traffic Switch (config) # access-list 100 permit any 10.10.1.0 0.0.255 // control pc1 downstream traffic Switch (config) # access-list 11 permit 10.10.2.0 0.0.0.255 // control pc2 upstream traffic Switch (config) # access-list 111 permit any 10.10.2.0 0.0.0.255 // control pc2 downstream Traffic 3. Define the class and bind the Switch (config) to the access control list defined above) # class-map user1-up // define the PC1 upstream class and bind 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 bind the access list 10 Switch (config-cmap) # exit Switch (config) # class-map user1-down Switch (config-cmap) # match access-group 100 // defines the downstream class of PC1 and binds the access list 100 Switch (config-cmap) # exit Switch (config) # class-map user2-down Switch (config-cmap) # match access-group 111 // defines the PC2 downstream class and binds the 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 the policy Switch (config) on the interface # 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.