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
看看天上,于是我去了满是风雪的地方