Configuring a Flexible Flow Statistics Template

When configuring the flexible flow statistics output function, configure a flexible flow statistics template, customize matching and collected fields, and apply the template to an interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip netstream record record-name

    An IPv4 flexible flow statistics template is created, and its recording view is displayed.

  3. Run match { { source | destination } { vlan | as | port | address | mask } | mpls top-label ip-address | mpls label position | { protocol | tos | direction | tcp-flag } | { input | output } interface | next-hop [ bgp ] }

    Aggregation keywords of the flexible flow statistics template are configured.

  4. (Optional) Run collect { { first | last } switched | input { packets | bytes } length }

    The flexible flow statistics sent to the NSC is configured to contain the number of bytes, number of packets, and first and last forwarding time.

  5. Run commit

    The configuration is committed.

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