Cisco 2960 3750交换机端口流量的限速(QOS)详解

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

你可能感兴趣的:(Cisco 2960 3750交换机端口流量的限速(QOS)详解)