1、配置ACL
display current #采集配置,检查是否存在和下面冲突的配置
display acl 3999 #判断将要创建的acl和设备已有的是否冲突,回显为空才是正常的
acl number 3999
rule permit tcp source X.X.X.X 0 destination X.X.X.X 0 destination-port eq 8080 #匹配源IP为X.X.X.X 源端口为任意端口,目的IP为X.X.X.X 目的端口为8080的TCP流量
rule permit udp source X.X.X.X 0 destination X.X.X.X 0 destination-port eq 9090 ##匹配源IP为X.X.X.X 源端口为任意端口,目的IP为X.X.X.X 目的端口为9090的UDP流量
rule permit icmp source X.X.X.X 0 destination X.X.X.X 0 #匹配源地址X.X.151.86 目的地址的X.X.X.X的ping或者traceroute流量
quit
#以上规则按需配置
2、配置 qos policy
traffic class test
if-match acl 3999
traffic behavior test
accounting packet
qos policy test
classifier test behavior test
3、调用QOS策略
接口应用流策略
interface ten-gigabitethernet 1/0/1 /也可以是子接口(interface ten-gigabitethernet 1/0/1.100)
qos apply policy test inbound
qos apply policy test outbound
全局调用流策略
qos apply policy test global inbound
qos apply policy test global outbound
4、流量统计信息查看
display qos policy diagnosis interface ten-gigabitethernet 1/0/1 inbound #接口qos策略应用情况检查
display qos accounting policy diagnosis global #全局qos 策略应用情况检查
display qos policy interface ten-gigabitethernet 1/0/1 #查看接口流量统计情况
display qos policy global #查看全局流量统计情况
原文始发于微信公众号(云网数端):华三交换机流量统计配置
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/259582.html