Skip to main content

Configuring Huawei CE

This document provides configuration steps for enabling NetStream and sFlow on Huawei CE devices.

Configuration Steps for NetStream

Set the exported interface index to 32-bit format, which helps collectors correctly interpret large interface indexes:

netstream export ip index-switch 32

Set the active timeout for flow records. Active flows are exported every 1 minute:

netstream timeout ip active 1

Set the inactive timeout for flow records. Flows with no traffic are exported after 15 seconds:

netstream timeout ip inactive 15

Set the NetStream v9 template refresh interval to 1 minute to ensure the collector receives templates regularly:

netstream template ip timeout 1

Specify the source IP address used for exporting NetStream packets. The source interface IP must have network reachability to the NFA server:

netstream export ip source source {INTERFACE_IP}

Configure the NetStream Flow Analyzer (NFA) server IP address and UDP port for flow export:

netstream export ip host {MOTADATA_SERVER_IP} 2055

Enable NetStream version 9 for exporting flow records:

netstream export ip version 9

Create a NetStream record for IP traffic and specify the fields to be matched and collected:

netstream record {MOTADATA_NETFLOW_IP}
match ip tos
match ip protocol
match ip source-address
match ip destination-address
match ip source-port
match ip destination-port
collect counter packets
collect counter bytes
collect interface input
collect interface output

This configuration defines what information is included in each exported flow record.

Under each interface where flow monitoring is required, apply the NetStream record and enable inbound flow collection:

netstream record {MOTADATA_NETFLOW_IP}
netstream inbound ip

Repeat this configuration for all relevant interfaces on the device.

Configuration Steps for sFlow

Enter system view:

system-view

Configure sFlow agent IP:

sflow agent { ip ip-address | ipv6 ipv6-address }

Set the source IP address for sFlow packets:

sflow source { ip ip-address | ipv6 ipv6-address }

Define a sFlow collector:

sflow collector collector-id { MOTADATA_COLLECTOR_IP } [ vpn-instance vpn-instance-name | length length-value | udp-port udp-port-number | description description ]

Commit the configuration:

commit

Under all interfaces of the device, configure sFlow:

interface interface-type interface-number
sflow sampling { collector { collector-id } &<1-2> | rate rate | length length | inbound | outbound }
sflow counter { collector { collector-id } &<1-2> | interval interval }

Example Configuration

system-view
sflow agent x.x.x.x
sflow source x.x.x.x
sflow collector 1 ip {MOTADATA_COLLECTOR_IP}

interface 10ge 0/1/2
sflow sampling collector 1 rate 1000 inbound outbound
sflow counter collector 1 interval 60

After completing the configuration, navigate to Menu > Flow Explorer and select the Event Source(s) and the associated Interface(s) from the drop-downs to view the active flow data.