Switch (config) #mls QoS
Access-List 59.215.45.0 0.0.0.127 # 10 the permit the upload traffic control port 59.215.45.0 network segment
access-list 100 permit 59.215.45.0 0.0.0.127 # under the control of the port 59.215.45.0 segment download traffic
class-Rate-limit the Map-Uplink
match Access Group-10
Exit
class-map rate-limit-downlink
match access-group 100
exit
policy-map rate-limit-uplink
class rate-limit-uplink
trust dscp
police 30000000 1000000 exceed-action drop
policy-map rate-limit-downlink
class rate-limit-downlink
trust dscp
police 30000000 1000000 exceed-action drop
interface f0/1
service-policy input rate-limit-uplink
interface g0/20
service-policy input rate-limit-downlink