一、华为交换机做流量统计(流统)

您所在的位置:网站首页 华三交换机端口流量统计 一、华为交换机做流量统计(流统)

一、华为交换机做流量统计(流统)

#一、华为交换机做流量统计(流统)| 来源: 网络整理| 查看: 265

做某厂的云计算的物理网络交付工作。网络环境复杂,涉及传统数通网络,虚拟网络,服务器内部网络。遇到排查网络故障,定位问题时,不得不用到流统。下面以源192.188.131.67,目的192.188.128.7为例做流量统计(流统)1、建立aclacl number 3333 rule 10 permit ip source 192.188.131.67 0 destination 192.188.128.7 02、定义流、流行为、流策略

traffic classifier 3333 type or if-match acl 3333

流行为

traffic behavior 3333 permit statistics enable

流策略

traffic policy 3333 classifier 3333 behavior 3333 precedence 53、应用流策略interface Eth-Trunk1 traffic-policy 3333 inbound traffic-policy 3333 outbound

查看引用情况

disp traffic policy Traffic Policy Information: Policy: 3333 Classifier: 3333 Type: OR Behavior: 3333 Statistics: enable

查看应用情况

disp traffic-policy applied-record Total records : 2 -------------------------------------------------------------------------------- Policy Type/Name Apply Parameter Slot State -------------------------------------------------------------------------------- 3333 Eth-Trunk1(IN) 1 success 2 success Eth-Trunk1(OUT) 1 success 2 success --------------------------------------------------------------------------------

查看inbound和outbound

disp traffic-policy statistics interface Eth-Trunk 1 inbound disp traffic-policy statistics interface Eth-Trunk 1 outbound 4、ping来测试

流量统计(流统),这里总共ping了8个包,匹配到8个包。

disp traffic-policy statistics interface Eth-Trunk 1 Traffic policy: 3333, inbound -------------------------------------------------------------------------------- Slot: 1 Item Packets Bytes pps bps ------------------------------------------------------------------------------- Matched 8 656 0 0 Passed 8 656 0 0 Dropped 0 0 0 0 Filter 0 0 0 0 CAR 0 0 0 0 ------------------------------------------------------------------------------- Slot: 2 Item Packets Bytes pps bps ------------------------------------------------------------------------------- Matched 0 0 0 0 Passed 0 0 0 0 Dropped 0 0 0 0 Filter 0 0 0 0 CAR 0 0 0 0 ------------------------------------------------------------------------------- Traffic policy: 3333, outbound -------------------------------------------------------------------------------- Slot: 1 Item Packets Bytes pps bps ------------------------------------------------------------------------------- Matched 8 656 0 0 Passed 8 656 0 0 Dropped 0 0 0 0 Filter 0 0 0 0 CAR 0 0 0 0 ------------------------------------------------------------------------------- Slot: 2 Item Packets Bytes pps bps ------------------------------------------------------------------------------- Matched 0 0 0 0 Passed 0 0 0 0 Dropped 0 0 0 0 Filter 0 0 0 0 CAR 0 0 0 0 -------------------------------------------------------------------------------5、清除统计信息reset traffic-policy statistics interface Eth-Trunk 16、备注交换机型号:CE6881-48S6CQ交换机软件版本:VRP (R) software, Version 8.190 (CE6881 V200R005C20SPC800)交换机补丁版本:Patch Version: V200R005SPH017二、华3交换机做流量统计(流统)1、建立ipv6的acl

acl ipv6 advanced 3333

description test

rule 5 permit ipv6 destination 2409:8C85:AA14::A4B:97C9/128

2、定义流、流行为、流策略

traffic classifier test operator and

if-match acl ipv6 3333

#

traffic behavior test

accounting packet byte

#

qos policy test

classifier test behavior test

interface Route-Aggregation1

qos apply policy test inbound



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3