zoukankan      html  css  js  c++  java
  • 华为交换机流量统计

    进行流量统计,确认报文的收发情况。
    步骤如下:
    a、先定义acl,匹配ping的源、目的IP地址:
    #
    acl number 3333
    rule 5 permit udp source x.x.x.x 0 destination y.y.y.y 0
    rule 10 permit udp source y.y.y.y 0 destination x.x.x.x 0
    #
    b、再定义流分类、流行为
    #
    traffic classifier 3333
    if-match acl 3333
    #
    traffic behavior 3333
    statistic enable
    #
    traffic policy 3333
    classifier 3333 behavior 3333
    #
    c、然后在端口上应用流策略,inbound方向和outbound方向,进行统计。
    如:
    #
    interface GigabitEthernet5/0/34
    traffic-policy 3333 inbound
    traffic-policy 3333 outbound
    #
    d、进行ping操作,查看流量统计情况。
    如:
    display traffic policy statistics interface GigabitEthernet 5/0/34 inbound
    display traffic policy statistics interface GigabitEthernet 5/0/34 outbound
    如果outbound方向没有统计计数,说明报文没有发送出去;
    如果inbound方向没有统计计数,说明没有收到应答报文;
    统计计数清除命令参考:
    reset traffic policy statistics interface GigabitEthernet 5/0/34 inbound
    reset traffic policy statistics interface GigabitEthernet 5/0/34 outbound

  • 相关阅读:
    numpy、torch:[ ]里传函数,数组过滤
    torch:torch.sort
    torch : transpose,transpose_
    托管堆和垃圾回收笔记
    UdpClient类客户端和服务端demo
    JavaScript阻止事件冒泡
    单元测试初接触
    CSS选择器
    文档onload处理程序
    TASKKILL命令使用方法
  • 原文地址:https://www.cnblogs.com/airoot/p/12718385.html
Copyright © 2011-2022 走看看