Cisco 3560 speed limits on port

Cisco 3560 speed limits on port, here is the confiuration, hope can help you!
By: 3anetwork
 
CHAI WAN, Hong Kong - June 4, 2014 - PRLog -- Network status

Connect PC1 to the Cisco 3560 F0 / 1, the rate of 1M

Connect PC2 to the Cisco 3560 F0 / 2, the rate of 2M

G0 / 1 of Cisco 3560 is for exit

http://www.3anetwork.com/cisco-catalyst-3560-switches-price_c40


The specific configursation procedure

Note: Every interface in every direction can only support one policy while one policy can be used for multiple interfaces. Thus the download rate limitation of all PC should be defined in the same policy (policy-map user-down is for this example), while the PC is defined to distinguish different rates in Class-map respectively.

1、Start QOS on the switch

Switch(config)#mls qos        //Start QOS on the switch

2、Define PC1 (10.10.1.1) and PC2 (10.10.2.1) access control list respectively

Switch(config)#access (http://www.knowsky.com/article.asp?typeid=173)-list 10 permit 10.10.1.0 0.0.0.255      //Control PC1 upward flow

Switch(config)#access-list 100 permit any 10.10.1.0 0.0.0.255  //Control PC1 downward flow

Switch(config)#access-list 11 permit 10.10.2.0 0.0.0.255       //Control PC2 upward flow

Switch(config)#access-list 111 permit any 10.10.2.0 0.0.0.255   //Control PC2 downward flow

3、Bind the class together with the defined access controllists mentioned above
Switch(config)# class-map user1-up          //Define upward class of PC1, 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    //Define upward 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   //Define downward class of PC2, and bind the access list 100
Switch(config-cmap)# exit
Switch(config)# class-map user2-down
Switch(config-cmap)# match access-group 111   //Define downward class of PC2, and bind the access list 111
Switch(config-cmap)# exit

4、Define the policy and bind the class defined above to this policy
Switch(config)# policy-map user1-up          //The upwardrate of PC1 is defined as 1M
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          //The upwardrate of PC2 is defined as 2M
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、Use policy to the interface
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
3anetwork
jkemma990@gmail.com
End
Source:3anetwork
Email:***@gmail.com
Tags:Cisco 3650, Cisco Switch
Industry:Electronics, Internet
Location:Chai Wan - Hong Kong Island - Hong Kong
Subject:Products
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse
Huanetwork PRs
Trending News
Most Viewed
Top Daily News



Like PRLog?
9K2K1K
Click to Share