< Home

Enabling NetStream Flexible Flow Statistics Collection on an Interface

Context

When configuring flexible NetStream, you must enable flow statistics collection and apply a flexible flow statistics template on an interface to ensure that statistics are exported successfully.

Procedure

  1. Run the system-view command to enter the system view.
  2. Run the interface interface-type interface-number command to enter the interface view.
  3. Run the port ip netstream record record-name [ inbound | outbound ] command to apply the flexible flow statistics template to the interface.

    • If the vlan parameter is configured in the flexible flow statistics template, it is recommended that the template be applied to Layer 2 Ethernet interfaces.
    • If the input parameter is configured in the flexible flow statistics template, the template can be applied only to the inbound direction of an interface. If the output parameter is configured in the flexible flow statistics template, the template can be applied only to the outbound direction of an interface.

  4. Enable flow statistics collection function on an interface.
    1. Run the ip netstream { inbound | outbound } command to enable the NetStream function on the interface to collect statistics about IPv4 flows.
    2. Run the ipv6 netstream { inbound | outbound } command to enable the NetStream function on the interface to collect statistics about IPv6 flows.

      By default, IPv4 and IPv6 flow statistics are not collected.

      • When the IPv4 and IPv6 flow statistics collection function is enabled on the interface, statistics about unicast and multicast packets are collected.
      • After the statistics collection function is enabled for IPv4 and IPv6 flows, the statistics are independent of each other.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >