Configuring Huawei CE 

     

    This device support Flexible netstream flow export. Please configure the device as mentioned below:

    netstream export ip index-switch 32// to set the interface index exported to be in 32 bit format

    netstream timeout ip active 1// to set the active timeout of the flows packets to 1 min

    netstream timeout ip inactive 15

    netstream template ip timeout 1// to set the v9 template timeout to 1 min

    netstream export ip source source interfaceIP// Source IP can be any which has routing to NFA server

    netstream export ip host NFAserver IP 9996 // Enter the IP address of NFA installed server and over the UDP port 9996

    netstream export ip version 9
    netstream record 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

     

    Under all interfaces of the device:

    netstream record NetFlow ip
    netstream inbound ip

     

    Sflow Configuration:

    Sflow export happed from the device only over the default UDP port 6343 to the NetFlow Analyzer server and it is not configurable in the device:

    system-view


    The system view is displayed.

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

    An IP address is configured for an sFlow agent.
    By default, an sFlow agent uses the IP address of the outbound interface in a route to the sFlow collector as an ip address of sFlow agent.
    The IP address of an sFlow agent is contained in the data field of sFlow packets, and uniquely identifies an sFlow agent. It is recommended that you configure the IP address of an sFlow agent manually.

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

    The source IP address of sFlow packets is configured.
    By default, an sFlow agent uses the IP address of the outbound interface in a route destined for the sFlow collector as a source IP address of sFlow packets.


    sflow collector collector-id { ip ip-address | ipv6 ipv6-address } [ vpn-instance vpn-instance-name | length length-value | udp-port udp-port-number | description description  ] *

    Parameters are set for an sFlow collector.
    By default, no sFlow collector is configured. A maximum of two sFlow collectors can be configured in the system.

    commit

    The configuration is committed.

     

    Under All interface of the device:

    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

     

    For example:

    system-view
    sflow agent 1.1.1.1

    sflow source 1.1.1.1
    sflow collector 1 ip 192.162.1.10 

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