From 323869a31a57d6334f63a7a380f61dea6fbb799b Mon Sep 17 00:00:00 2001 From: Cory McGrath Date: Wed, 8 Feb 2023 21:24:34 -0500 Subject: [PATCH] Huawei IPv6 Config Sample I'm not sure if the slot commands at the top are necessary. --- Huawei/netflow-9.conf | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/Huawei/netflow-9.conf b/Huawei/netflow-9.conf index fc75305..6f4604a 100644 --- a/Huawei/netflow-9.conf +++ b/Huawei/netflow-9.conf @@ -1,12 +1,42 @@ + +slot 1 +ip netstream sampler to slot self +# +slot 2 +ipv6 netstream sampler to slot self +# ip netstream timeout active 1 ip netstream timeout inactive 15 -ip netstream export version 9 - +ip netstream export version 9 origin-as +# # this command is only necessary if you run VRP >= 5.0 # it will store interface indices in 32bit counters (as SNMP does) instead of 16bit. ip netstream export index-switch 32 - ip netstream export template timeout-rate 1 +ip netstream sampler fix-packets {{device_sample_rate}} inbound +ip netstream export source {IP-ADDRESS} +ip netstream export host{{kentik_ingest_IP}} {{kentik_ingest_PORT}} vpn-instance INTERNET +# +ipv6 netstream timeout active 1 +ipv6 netstream timeout inactive 15 +ipv6 netstream export version 9 origin-as +# +ip netstream monitor FLOW-IPv4 +ip netstream export host {{kentik_ingest_IP}} {{kentik_ingest_PORT}} vpn-instance INTERNET version 9 +# +ipv6 netstream monitor FLOW-IPv6 +# +# +set flow-stat interval 30 +ipv6 enable +ip netstream inbound +# ip netstream sampler fix-packets {{device_sample_rate}} inbound -ip netstream export source {{device_sending_ip}} -ip netstream export host {{kentik_ingest_ip_from_UI}} {{kentik_ingest_UDP_port_from_UI}} +# or for randomsampling: +# ip netstream sampler random-packets {{device_sample_rate}} inbound +# +ipv6 netstream inbound +ipv6 netstream sampler random-packets {{device_sample_rate}} inbound +ip netstream monitor FLOW-IPv4 inbound +ipv6 netstream monitor FLOW-IPv6 inbound +#