Switch(config)#mls qos
access-list 10 permit 59.215.45.0 0.0.0.127 # 控制这个端口下59.215.45.0网段的上传流量
access-list 100 permit 59.215.45.0 0.0.0.127 #控制这个端口下59.215.45.0网段的下载流量
class-map rate-limit-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
http://blog.sina.com.cn/s/blog_629b8d940102vbtu.html
原文地址:https://blog.51cto.com/zhangfang526/2433877
时间: 2024-11-09 00:55:09