Help Docs

Configuring Flow Exports on Huawei Devices

For NetFlow analysis, you need to configure your devices to export flows to Site24x7 On-Premise Poller, which is the NetFlow collector. The On-Premise Poller will be listening to the particular port to receive flows. Learn how to find the port number of your On-Premise Poller.

sFlow configuration

Configure sFlow on Huawei devices using the following commands:

  1. Configuring the sFlow agent IP
    The sFlow agent IP is the device’s IP address used for exporting flow data to the collector.

    sflow
    sflow agent ip
    commit
  2. Configuring the sFlow collector
    Set the IP address of the sFlow collector (Site24x7 On-Premise Poller) and commit the changes.

    sflow collector 1
    commit
    sflow server ip
    commit
    quit
    quit
  3. Enabling sFlow on a specified slot
    Activate sFlow on the relevant slot where traffic flows will be monitored.
    slot 4
    sflow enable
    commit
    quit
  4. Configuring flow sampling
    Define how often sFlow samples packets on a specific interface.
    interface GigabitEthernet 0/1/3
    sflow flow-sampling collector 1 inbound
    commit
    sflow flow-sampling rate 2000 inbound
    commit
    quit
  5. Verifying the sFlow configuration
    Run the following command to verify if the sFlow configuration is correct.
    display sflow configuration
    For more details, refer to the official documentation from Huawei.

NetStream configuration

  1. Configuring the NTP server
    Ensure time synchronization across devices by configuring the NTP server.
    ntp-service server disable 
    ntp-service ipv6 server disable 
    ntp-service unicast-peer
    ntp-service unicast-peer
    This exports the NetStream exports to the specified IP address. Specify the IP address of the machine on which Site24x7 On-Premise Poller is installed and the configured listener port. The default port is 9996.
  2. Configuring the slot to export flow information
    Specify the slot from which flow data will be exported. Replace "3" with the actual slot number if different.
    slot 3 (Replace "3" with your actual slot number if different.)
    ip netstream sampler to slot self  
    ipv6 netstream sampler to slot self
  3. Configuring NetStream export settings
    Set the NetStream export settings, including version, source IP, and host IP.
    ip netstream timeout active 1
    ip netstream timeout inactive 15
    ip netstream export version 9
    ip netstream export index-switch 32
    ip netstream export template timeout-rate 1
    ip netstream sampler fix-packets 500 inbound
    ip netstream sampler fix-packets 500 outbound
    ip netstream export source
    ip netstream export host 2055
    ip netstream export template option sampler
    ip netstream export template option timeout-rate 1
    ip netstream as-mode 32
    ipv6 netstream as-mode 32
    ipv6 netstream timeout active 1
    ipv6 netstream timeout inactive 15
    ipv6 netstream export version 9
    ipv6 netstream export index-switch 32
    ipv6 netstream export template timeout-rate 1
    ipv6 netstream sampler fix-packets 500 inbound
    ipv6 netstream sampler fix-packets 500 outbound
    ipv6 netstream export source
    ipv6 netstream export host 2055
    ipv6 netstream export template option sampler
    ipv6 netstream export template option timeout-rate 1
    ipv6 netstream as-mode 32
  4. Enabling NetFlow on interfaces
    Enable NetFlow on the interfaces that will export flow data.
    ip netstream inbound  
    ipv6 netstream inbound

    For more details, refer to the official documentation from Huawei.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!