Outputting Flexible Flows

To ensure that flexible flows can be correctly output to the NMS, specify the related parameters for flexible flows.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip netstream export version 9 [ origin-as | peer-as ] [ bgp-nexthop ]

    The output version number and AS option of flexible flow packets are specified.

    NetStream flexible flow packets support only the V9 packet format.

  3. (Optional) Configure NetStream packets to carry the flow sequence field.

    1. Run slot slot-id

      The view of the slot in which the interface board for NetStream sampling resides is displayed.

    2. Run ip netstream export sequence-mode flow

      The NetStream export sequence mode is set to flow.

      The command applies to the V9 format only.

    3. Run quit

      The system view is displayed.

  4. Run ip netstream apply record record-name

    Flexible flows are applied in the system view.

    Flexible flow packets can be output only in the V9 format. If the ip netstream export version command is run in the system view to specify the V5 or IPFIX packet output format, the ip netstream apply record command does not take effect.

  5. (Optional) Run ip netstream export template timeout-rate timeout-interval

    The interval at which the template for outputting flexible flows in the V9 format is updated.

  6. Run ip netstream export source ip-address [ port ]

    The source IP address and source port are specified for flexible flows.

  7. Specify the destination IP address and UDP port number of the peer NSC for NetStream flexible flows in the system or slot view.

    • In the system view:

      Run ip netstream export host ip-address port [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]

      The destination IP address and UDP port number of the peer NSC are specified for NetStream flexible flows to be output.

    • In the slot view:

      1. Run slot slot-id

        The view of the slot in which the interface board for NetStream sampling resides is displayed.

      2. Run ip netstream export host ip-address port [ vpn-instance vpn-instance-name ] [ dscp dscp-value ]

        The destination IP address and UDP port number of the peer NSC are specified for NetStream flexible flows to be output.

      3. Run quit

        The system view is displayed.

  8. (Optional) Set parameters for aging flexible flows as needed.

  9. Run commit

    The configuration is committed.

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