Restricting Server Downloads:
Speed 10
Srr-queue Bandwidth Limit 50 (at this time the server download is limited to 10M 50 that is 5M)
Speed 100
Srr-queue Bandwidth Limit 50 (at this time the server download is limited to 100M 50 that is 50M)
Obviously this speed limit download command is in line with the port protocol in use
Limit server uploads: (If you want to limit upload download to 10M, direct speed 10 OK)
1. Start QoS on the switch
MLS QoS
To start QoS on the switch
2. Define classes, create a class that matches all traffic
Class-map Match-all Ipclass
Class that defines the upstream of the SV1 and binds all IP traffic
Match IP DSCP default
Exit
3, define the policy, bind the class defined above to the policy
10M
Policy-map xiansu_up-10m
Class Ipclass
Police 10000000 1000000 exceed-action drop
Exit
Exit
Define the PC1 upstream at a rate of 10M, exceeding the drop
20M:
Policy-map xiansu_up-20m
Class Ipclass
Police 20000000 1000000 exceed-action drop
Exit
Exit
Define the PC1 upstream at a rate of 20M, exceeding the drop
30M:
Policy-map xiansu_up-30m
Class Ipclass
Police 30000000 1000000 exceed-action drop
Exit
Exit
Define the PC1 upstream at a rate of 30M, exceeding the drop
50M:
Policy-map xiansu_up-50m
Class Ipclass
Police 50000000 1000000 exceed-action drop
Exit
Exit
Define the PC1 upstream at a rate of 50M, exceeding the drop
4. Apply the strategy on the interface
Interface GIGABITETHERNET0/9
Service-policy input xiansu_up-10m
Exit
Exit
wr
This article from "11393002" blog, declined reprint!
Cisco switch Speed limit