1.定义高级ACL 3000对源IP和目的IP的报文进行数据包匹配

  acl number 3000

    rule 1 permit ip source any

2.定义类classifier1,匹配高级ACL 3000

  traffic classifier classifier1

   If-match acl 3000

3.定义流行为behavior1,动作为流量统计

 traffic behavior behavior1

   Accounting packet

4.定义策略policy,为类classifier1指定流行为behavior1

  qos policy policy

    classifier classifier1 behavior behavior1

5.将策略policy应用到端口1/0/1的入和出方向

 interface g1/0/1

   Qos apply policy policy inbound

   Qos apply policy policy outbound

6.查看配置后的流量统计的情况

  display qos policy inter g1/0/1

 

posted on 2022-10-24 12:09  星痕1216  阅读(2996)  评论(0编辑  收藏  举报