1. 启动QOS特性
mls qos
2. 定义用户的速度限制
mls qos aggregate-policer Customer-1 1000000 800000 exceed-action drop
3. 定义匹配的流量
class-map match-all egress-group1
match ip dscp 0
4. 匹配流量与速度限制
policy-map 50
class egress-group1
police Customer-1
所有符合egress-group1的流量将实施Customer-1策略
5. 应用至端口
interface FastEthernet0/1
no ip address
service-policy output 50
service-policy output 50表明该端口实施名字为50的政策
转载于:https://blog.51cto.com/cisco130/1136765