{"id":11883,"date":"2019-04-12T17:41:46","date_gmt":"2019-04-12T20:41:46","guid":{"rendered":"https:\/\/made4it.com.br\/netflow-configuration-on-huawei-routers\/"},"modified":"2023-03-09T14:55:08","modified_gmt":"2023-03-09T17:55:08","slug":"netflow-configuration-on-huawei-routers","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/netflow-configuration-on-huawei-routers\/","title":{"rendered":"Netflow Configuration on Huawei Routers"},"content":{"rendered":"\n<p>Hello<\/p>\n\n<p>Today we will break down how to configure your Huawei router to export Netflow (Netstream IP).  <\/p>\n\n<p>Here we have the Network topology and the Netflow Server information<\/p>\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"362\" src=\"https:\/\/www.made4it.com.br\/wp-content\/uploads\/2019\/04\/netflow-1024x362.png\" alt=\"\" class=\"wp-image-805\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2019\/04\/netflow-1024x362.png 1024w, https:\/\/made4it.com.br\/wp-content\/uploads\/2019\/04\/netflow-300x106.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2019\/04\/netflow-768x272.png 768w, https:\/\/made4it.com.br\/wp-content\/uploads\/2019\/04\/netflow.png 1066w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Topology and Netflow Server information<\/figcaption><\/figure>\n\n<p>These are the steps required to configure the Huawei Router to export Netflow v5\/v9 via Netstream IP<\/p>\n\n<ol class=\"wp-block-list\"><li>Configure the NTP Server<\/li><li>Configure the slot to export information<\/li><li>Configuring Netstream IP with Netflow Server<\/li><li>Configure the interface to enable Netflow on the interface<\/li><\/ol>\n\n<p>Let&#8217;s go to the step-by-step configuration<\/p>\n\n<h3 class=\"wp-block-heading\">1.Configuring the NTP Server<\/h3>\n\n<p>It is important to set up an NTP Server because Flows data uses  \ntimestamp according to the router&#8217;s time, if the router is  \na different server time the data will not agree with the  \ntime, generating a mismatch of information.<\/p>\n\n<p>It is important that you configure at least 2 NTP servers and also your router&#8217;s timezone.<\/p>\n\n<pre class=\"wp-block-preformatted\">ntp-service server disable  <br\/>ntp-service ipv6 server disable  <br\/>ntp-service unicast-peer 200.160.0.8<br\/>ntp-service unicast-peer 200.189.40.8<br\/><\/pre>\n\n<h3 class=\"wp-block-heading\">2. Configure the slot to export information<\/h3>\n\n<p>On Huawei routers it is necessary to configure the Slot to export information, to do this use the commands:<\/p>\n\n<pre class=\"wp-block-preformatted\">slot 3  <br\/>ip netstream sampler to slot self  <br\/>ipv6 netstream sampler to slot self<\/pre>\n\n<h3 class=\"wp-block-heading\">3. Configuring Netstream IP with Netflow Server<\/h3>\n\n<p>On Huawei routers you must configure the netstream IP to say which server will receive the Netflow data, which sampling (sampler), which Netflow version and Netflow source IP. For configuration use the following commands:<\/p>\n\n<pre class=\"wp-block-preformatted\">  ip netstream timeout active 1<br\/>  ip netstream timeout inactive 15<br\/>  ip netstream export version 9<br\/>  ip netstream export index-switch 32<br\/>  ip netstream export template timeout-rate 1<br\/>  ip netstream sampler fix-packets 500 inbound<br\/>  ip netstream sampler fix-packets 500 outbound<br\/>  ip netstream export source 192.168.210.49<br\/>  ip netstream export host 192.168.210.47 2055<br\/>  ip netstream export template option sampler<br\/>  ip netstream export template option timeout-rate 1<br\/>  ip netstream as-mode 32<\/pre>\n\n<pre class=\"wp-block-preformatted\">  ipv6 netstream as-mode 32<br\/>  ipv6 netstream timeout active 1<br\/>  ipv6 netstream timeout inactive 15<br\/>  ipv6 netstream export version 9<br\/>  ipv6 netstream export index-switch 32<br\/>  ipv6 netstream export template timeout-rate 1<br\/>  ipv6 netstream sampler fix-packets 500 inbound<br\/>  ipv6 netstream sampler fix-packets 500 outbound<br\/>  ipv6 netstream export source 192.168.210.49<br\/>  ipv6 netstream export host 192.168.210.47 2055<br\/>  ipv6 netstream export template option sampler<br\/>  ipv6 netstream export template option timeout-rate 1<br\/>  ipv6 netstream as-mode 32<\/pre>\n\n<h3 class=\"wp-block-heading\">4. Configure the interface to enable Netflow on the interface<\/h3>\n\n<p>Finally, we need to activate the interfaces that will export Netflow, so in each interface use the commands:<br\/><\/p>\n\n<pre class=\"wp-block-preformatted\">ip netstream inbound  <br\/>ipv6 netstream inbound<\/pre>\n\n<p><strong>Below is the complete configuration of the Router:<\/strong><\/p>\n\n<pre class=\"wp-block-preformatted\">ntp-service server disable<br\/>ntp-service ipv6 server disable<br\/>ntp-service unicast-peer 200.160.0.8<br\/>ntp-service unicast-peer 200.189.40.8<\/pre>\n\n<pre class=\"wp-block-preformatted\">slot 3<br\/>\n  ip netstream sampler to slot self<br\/>\n  ipv6 netstream sampler to slot self<\/pre>\n\n<pre class=\"wp-block-preformatted\">ip netstream timeout active 1<br\/>ip netstream timeout inactive 15<br\/>ip netstream export version 9<br\/>ip netstream export index-switch 32<br\/>ip netstream export template timeout-rate 1<br\/>ip netstream sampler fix-packets 500 inbound<br\/>ip netstream sampler fix-packets 500 outbound<br\/>ip netstream export source 192.168.210.49<br\/>ip netstream export host 192.168.210.47 2055<br\/>ip netstream export template option sampler<br\/>  ip netstream export template option timeout-rate 1<br\/>  ip netstream as-mode 32<\/pre>\n\n<pre class=\"wp-block-preformatted\">ipv6 netstream as-mode 32<br\/>ipv6 netstream timeout active 1<br\/>ipv6 netstream timeout inactive 15<br\/>ipv6 netstream export version 9<br\/>ipv6 netstream export index-switch 32<br\/>ipv6 netstream export template timeout-rate 1<br\/>ipv6 netstream sampler fix-packets 500 inbound<br\/>ipv6 netstream sampler fix-packets 500 outbound<br\/>ipv6 netstream export source 192.168.210.49<br\/>ipv6 netstream export host 192.168.210.47 2055<br\/>ipv6 netstream export template option sampler<br\/>ipv6 netstream export template option timeout-rate 1<br\/>ipv6 netstream as-mode 32<\/pre>\n\n<pre class=\"wp-block-preformatted\">interface eth-trunk0.100 (example interface)<br\/>ip netstream inbound<br\/>ipv6 netstream inbound<\/pre>\n\n<h4 class=\"wp-block-heading\">If you have an NE40, here is a sample configuration:<br\/><\/h4>\n\n<pre class=\"wp-block-preformatted\">ntp-service server disable<br\/>ntp-service ipv6 server disable<br\/>ntp-service unicast-peer 200.160.0.8<br\/>ntp-service unicast-peer 200.189.40.8<\/pre>\n\n<pre class=\"wp-block-preformatted\">slot 3<br\/>  ip netstream sampler to slot self<br\/>  ipv6 netstream sampler to slot self<\/pre>\n\n<pre class=\"wp-block-preformatted\">ip netstream as-mode 32<br\/>ip netstream timeout inactive 15<br\/>ip netstream export version 9<br\/>ip netstream export index-switch 32<br\/>ip netstream export template timeout-rate 1<br\/>ip netstream sampler fix-packets 500 inbound<br\/>ip netstream sampler fix-packets 500 outbound<br\/>ip netstream export source 192.168.210.49<br\/>ip netstream export host 192.168.210.47 2055<br\/>ip netstream export template option sampler<br\/>ip netstream export template option timeout-rate 1<br\/>  #<br\/>ipv6 netstream as-mode 32<br\/>ipv6 netstream timeout inactive 15<br\/>ipv6 netstream export version 9<br\/>ipv6 netstream export index-switch 32<br\/>ipv6 netstream export template timeout-rate 1<br\/>ipv6 netstream sampler fix-packets 500 inbound<br\/>ipv6 netstream sampler fix-packets 500 outbound<br\/>ipv6 netstream export source 192.168.210.49<br\/>ipv6 netstream export host 192.168.210.47 2055<br\/>ipv6 netstream export template option sampler<br\/>ipv6 netstream export template option timeout-rate 1<\/pre>\n\n<pre class=\"wp-block-preformatted\">On all interfaces add<br\/>  ip netstream inbound<br\/>  ipv6 netstream inbound<\/pre>\n\n<p>If you have a router not mentioned here, please send an email to comercial@made4it.com.br and we will send you the settings.<\/p>\n\n<p>I hope I have helped you and until next time.<\/p>\n\n<p>Big hug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Today we will break down how to configure your Huawei router to export Netflow (Netstream IP). Here we have the Network topology and the Netflow Server information These are the steps required to configure the Huawei Router to export Netflow v5\/v9 via Netstream IP Configure the NTP Server Configure the slot to export information [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":15559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"footnotes":""},"categories":[530,531],"tags":[666,667,532,668,669,454,533,675,670,664,665,671,672,673,674,676,677],"class_list":["post-11883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-huawei-en","category-routers","tag-configure-huawei-netflow","tag-configure-netflow-huawei-en","tag-huawei-en","tag-huawei-ip-netstream-en","tag-huawei-ipnetstream-en","tag-huawei-ne20-en","tag-huawei-ne40-en","tag-huawei-netflow-en-2","tag-huawei-netflow-en","tag-huawei-netflow-configuration","tag-huawei-netflow-configuration-en","tag-huawei-netflow-v5-en","tag-huawei-netflow-v9-en","tag-ip-netstream-en","tag-ipnetstream-en","tag-netflow-ne20-en","tag-netflow-ne40-en"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/11883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/comments?post=11883"}],"version-history":[{"count":0,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/11883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media\/15559"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=11883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=11883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=11883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}