Netstream (Netflow) Configuration on Huawei Router

Here’s a sample steps for configuring Netstream or Netflow on Huawe Router:

Netstream Server = 192.168.30.100
Netstream UDP port = 9991
version = v9
Loopback IP = 1.1.1.1

  1. Configure Netstream for IPv4 & IPv6

ip netstream timeout active <value>
ip netstream export version <version#> origin-as
ip netstream export template timeout-rate <value>
ip netstream sampler fix-packets <packets> inbound
ip netstream export source <source IP>
ip netstream export host <Netstream Server IP> <port>

ipv6 netstream timeout active <value>
ipv6 netstream export version <version#> origin-as
ipv6 netstream export template timeout-rate <value>
ipv6 netstream sampler fix-packets <packets> inbound
ipv6 netstream export source <source IP>
ipv6 netstream export host <Netstream Server IP> <port>

2. Set flow interval

set flow-stat interval <value>

3. Apply the netstream configuration in the interface

interface <interface name>
ip netstream inbound

4. Optional:  Apply netstream per slot

slot <slot id>
ip netstream sampler to slot self

5. Optional: Apply ip netstream aggregation to configure the Netstream configuration method

ip netstream aggregation { as | as-tos | destination-prefix | destination-prefix-tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos }
enable

 

Verification:

display ip netstream statistics slot <slot id>

Sample Output:

slot 1
ip netstream sampler to slot self

ip netstream timeout active 1
ip netstream export version 9 origin-as
ip netstream export template timeout-rate 5
ip netstream sampler fix-packets 10000 inbound
ip netstream export source 1.1.1.1
ip netstream export host 192.168.30.100 9991

ipv6 netstream timeout active 1
ipv6 netstream export version 9 origin-as
ipv6 netstream export template timeout-rate 5
ipv6 netstream sampler fix-packets 10000 inbound
ipv6 netstream export source 1.1.1.1
ipv6 netstream export host 192.168.30.100 9991

set flow-stat interval 30

interface 100GE1/0/0
  ip netstream inbound

ip netstream aggregation source-prefix
enable

Be First to Comment

Leave a Reply

Your email address will not be published.