This guide describes required configuration steps for Huawei routers (tested with NE40)

In this guide we use sampling rate 1:1000 and it works fine for bandwidth starting from 1G.

To enable Netstream for IPv4 protocol you need to apply following global configuration options:

ip netstream timeout active interval-second 15
ip netstream timeout inactive 15
ip netstream export version 9
ip netstream as-mode 32
ip netstream export template timeout-rate 1
ip netstream export template option timeout-rate 1
ip netstream export source YOUR_ROUTER_IP
ip netstream export host FASTNETMON_IP 2055
ip netstream export template option sampler

ip netstream inbound
ip netstream outbound
ip netstream sampler fix-packets 1000 inbound
ip netstream sampler fix-packets 1000 outbound

To enable Netstream for IPv6 protocol you need to apply same commands but instead of using “ip netstream” please use “ipv6 netstream”.

To apply following commands you will need to know number of slot for line card. You can list all available line cards and get their slot IDs this way:

display device

Example output:

display device
S6730-H24X6C's Device status:
Slot Sub  Type                   Online    Power    Register     Status   Role
--------------------------------------------------------------------------------------
0    -    S6730-H24X6C           Present   PowerOn  Registered   Normal   Master
     PWR1 POWER                  Present   PowerOn  Registered   Normal   NA
     PWR2 POWER                  Present   PowerOn  Registered   Normal   NA
     FAN1 FAN                    Present   PowerOn  Registered   Normal   NA
     FAN2 FAN                    Present   PowerOn  Registered   Normal   NA
     FAN3 FAN                    Present   PowerOn  Registered   Normal   NA
     FAN4 FAN                    Present   PowerOn  Registered   Normal   NA

Enable Netstream IPv4 for each available slot:

slot <slot id>
ip netstream sampler to slot self

To enable Netsteram for IPv6 apply following command:

ipv6 netstream sampler to slot self

Or you may enable Netstream on interface basis for inbound:

interface <interface name>
ip netstream inbound

And outbound:

interface <interface name>
ip netstream outbound

To enable Netstream for IPv6 protocol in both directions on specific interface apply following commands:

interface <interface name>
ipv6 netstream outbound
ipv6 netstream inbound

Check Netstream export statistics:

display ip netstream statistics slot <slot id>

Example output:

 ===== Netstream statistics: =====
 Origin/Flexible ingress entries  : 12345
 Origin/Flexible ingress packets  : 12345
 Origin/Flexible ingress octets   : 12345
 Origin/Flexible egress entries   : 12345
 Origin/Flexible egress packets   : 12345
 Origin/Flexible egress octets    : 12345
 Origin/Flexible total entries    : 100
 Handle origin entries            : 800000
 Handle As aggre entries          : 0
 Handle ProtPort aggre entries    : 0
 Handle SrcPrefix aggre entries   : 0
 Handle DstPrefix aggre entries   : 0
 Handle Prefix aggre entries      : 0
 Handle AsTos aggre entries       : 0
 Handle ProtPortTos aggre entries : 0
 Handle SrcPreTos aggre entries   : 0
 Handle DstPreTos aggre entries   : 0
 Handle PreTos aggre entries      : 0

On FastNetMon’s side you may specify sampling rate if needed using this guide:

sudo fcli set main netflow_sampling_ratio 1000
sudo fcli set main netflow_custom_sampling_ratio_enable enable
sudo fcli commit

And specify average calculation time value:

sudo fcli set main average_calculation_time 30
sudo fcli commit

24/7 Tech Support

support@fastnetmon.com

Email Us

sales@fastnetmon.com