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:
-
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 ipcommit -
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 ipcommit quit quit -
Enabling sFlow on a specified slot
Activate sFlow on the relevant slot where traffic flows will be monitored.
slot 4
sflow enable
commit
quit -
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 - Verifying the sFlow configuration
Run the following command to verify if the sFlow configuration is correct.
display sflow configuration
NetStream configuration
- 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-peerntp-service unicast-peer - 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 - 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 sourceip 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 - Enabling NetFlow on interfaces
Enable NetFlow on the interfaces that will export flow data.
ip netstream inbound
ipv6 netstream inboundFor more details, refer to the official documentation from Huawei.
-
On this page
- sFlow configuration
- NetStream configuration