{"id":11871,"date":"2019-10-21T16:36:13","date_gmt":"2019-10-21T19:36:13","guid":{"rendered":"https:\/\/made4it.com.br\/netflow-configuration-on-cisco-routers\/"},"modified":"2023-03-09T14:53:22","modified_gmt":"2023-03-09T17:53:22","slug":"netflow-configuration-on-cisco-routers","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/netflow-configuration-on-cisco-routers\/","title":{"rendered":"Netflow Configuration on Cisco Routers"},"content":{"rendered":"\n<p>Hello<\/p>\n\n<p>Today we will break down how to configure your Cisco router to export Netflow.  <\/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\" \/><\/figure>\n\n<p>These are the steps required to configure the Cisco ASR9k Router to export Netflow v5\/v9<\/p>\n\n<ol class=\"wp-block-list\"><li>Configure Flow Exporter-Map<\/li><li>Configuring the Sampler-Map<\/li><li>Configure Monitor-Map for IPv4 and IPv6<\/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<h2 class=\"wp-block-heading\">1. Configure Flow Exporter-Map<\/h2>\n\n<p>Configure the Flow Exporter-Map where we tell you the Netflow Server IP, port, Netflow version and other information, following the example:<br\/><\/p>\n\n<pre class=\"wp-block-preformatted\">flow exporter-map MADE4FLOW-EM<br\/>  destination 192.168.210.47<br\/>  source ge-0\/0\/0<br\/>  transport udp 2055<br\/>  version v9<br\/>  options interface-table<br\/>  template data timeout 60<br\/>  options interface-table timeout 60<br\/>  exit<\/pre>\n\n<h2 class=\"wp-block-heading\">2. Configuring the Sampler-Map<br\/><\/h2>\n\n<p>The sampler-map will tell the Cisco ASR9k Router the sampling values to send to the Netflow Collection Server<br\/><\/p>\n\n<pre class=\"wp-block-preformatted\">sampler-map MADE4FLOW-SM<br\/>  random 1 out of 500<br\/>  exit<\/pre>\n\n<p>In this example we are randomly exporting 1 of 500 packages.  <br\/><br\/>By using sampling you have decreased the load on your router&#8217;s CPU, conserving resources.<\/p>\n\n<h2 class=\"wp-block-heading\">3. Configuring Monitor-Map for IPv4 and IPv6<\/h2>\n\n<p>The next step is to configure the Monitor-map to determine which type of protocol we will collect and which exporter we will use.<\/p>\n\n<p>For IPv4 use<\/p>\n\n<pre class=\"wp-block-preformatted\">flow monitor-map MADE4FLOW-FMM<br\/>\n  record ipv4<br\/>\nexport MADE4FLOW-EM<br\/>\n  cache entries 800000<br\/>\n  cache timeout active 60<br\/>\n  cache timeout inactive 15<br\/>\nexit<\/pre>\n\n<p>For IPv6<\/p>\n\n<pre class=\"wp-block-preformatted\">flow monitor-map MADE4FLOW-FMM-v6<br\/>\n  ipv6 record<br\/>\n  export MADE4FLOW-EM<br\/>\n  cache entries 800000<br\/>\n  cache timeout active 60<br\/>\n  cache timeout inactive 15<br\/>\nexit<\/pre>\n\n<h2 class=\"wp-block-heading\">4. Configure the interface to enable Netflow on the interface<\/h2>\n\n<p>To enable your router to collect information it is necessary to enable the Flow command on all interfaces, use the following commands to enable in IPv4 and IPv6<br\/><\/p>\n\n<pre class=\"wp-block-preformatted\">Gi0\/1 interface<br\/>  flow ipv4 monitor MADE4FLOW-FMM sampler MADE4FLOW-SM ingress<br\/>  flow ipv6 monitor MADE4FLOW-FMM-v6 sampler MADE4FLOW-SM ingress<\/pre>\n\n<hr class=\"wp-block-separator\"\/>\n\n<h2 class=\"wp-block-heading\">All configuration used<\/h2>\n\n<p>flow exporter-map MADE4FLOW-EM<br\/>\ndestination 192.168.210.47<br\/>\n  source ge-0\/0\/0<br\/>\n  transport udp 2055<br\/>\nversion v9<br\/>\noptions interface-table<br\/>\ntemplate data timeout 60<br\/>\noptions interface-table timeout 60<br\/>\nexit<\/p>\n\n<p>sampler-map MADE4FLOW-SM<br\/>  random 1 out of 500<br\/>  exit<\/p>\n\n<p>flow monitor-map MADE4FLOW-FMM<br\/>\n  record ipv4<br\/>\nexport MADE4FLOW-EM<br\/>\n  cache entries 800000<br\/>\n  cache timeout active 60<br\/>\n  cache timeout inactive 15<br\/>\nexit<\/p>\n\n<p>flow monitor-map MADE4FLOW-FMM-v6<br\/>\n  ipv6 record<br\/>\n  export MADE4FLOW-EM<br\/>\n  cache entries 800000<br\/>\n  cache timeout active 60<br\/>\n  cache timeout inactive 15<\/p>\n\n<p>Gi0\/1 interface<br\/>\n  flow ipv4 monitor MADE4FLOW-FMM sampler MADE4FLOW-SM ingress<br\/>\n  flow ipv6 monitor MADE4FLOW-FMM-v6 sampler MADE4FLOW-SM ingress<\/p>\n\n<hr class=\"wp-block-separator\"\/>\n\n<h2 class=\"wp-block-heading\">Netflow on Cisco ASR100x (1002, 1006, 1008)<\/h2>\n\n<p>If your router is a Cisco ASR100x (1002, 1006, 1008), use the commands below:<br\/><\/p>\n\n<pre class=\"wp-block-preformatted\">flow exporter MADE4FLOW<br\/>\n  destination 192.168.210.47<br\/>\n  transport udp 2055<br\/>\n  source tenGigabitEthernet 0\/3\/0<br\/>\n!<br\/>\nflow monitor MADE4FLOW_monitor<br\/>\n  exporter MADE4FLOW<br\/>\n  cache timeout active 60<br\/>\n  record netflow-original<br\/>\n!<br\/>\nsampler 1of500<br\/>\n  description sampler from 1 to 500<br\/>\n  mode random 1 out-of 500<\/pre>\n\n<pre class=\"wp-block-preformatted\">On each interface of your Router run the following command<br\/>ip flow monitor MADE4FLOW_monitor sampler 1of500 input<br\/><\/pre>\n\n<hr class=\"wp-block-separator\"\/>\n\n<p>Below is the total configuration for the Cisco ASR100x Line (1002, 1006, 1008)<\/p>\n\n<p>flow exporter MADE4FLOW<br\/>  destination 192.168.210.47<br\/>  transport udp 2055<br\/>  source tenGigabitEthernet 0\/3\/0<br\/>  !<br\/>  flow monitor MADE4FLOW_monitor<br\/>  exporter MADE4FLOW<br\/>  cache timeout active 60<br\/>  record netflow-original<br\/>  !<br\/>  sampler 1of500<br\/>  description sampler from 1 to 500<br\/>  mode random 1 out-of 500<br\/><br\/><\/p>\n\n<p>ON EACH INTERFACE ADD THE COMMAND<br\/>\nip flow monitor MADE4FLOW_monitor sampler 1of500 input<br\/><\/p>\n\n<hr class=\"wp-block-separator\"\/>\n\n<p>If you have any questions, feel free to contact us via WhatsApp, email or phone<br\/><br\/>WhatsApp: <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/api.whatsapp.com\/send?phone=5543984854013&amp;text=Ol%C3%A1\" target=\"_blank\">+55 43 9 8485-4013<\/a><br\/>E-mail: suporte@made4flow.com.br<br\/>Phone: +55 43 3047-8300<br\/><br\/>Until next time<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure Netflow on your Cisco ASR9k or Cisco 100x Line (1002,1004 or 1008) router<\/p>\n","protected":false},"author":13,"featured_media":8476,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"footnotes":""},"categories":[320,327,531],"tags":[613,614,615,616,617,618,619,362,330,621,622,620,623,624,332,333],"class_list":["post-11871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bgp-en","category-netflow-en","category-routers","tag-cisco-en","tag-cisco-ask-9000-en","tag-cisco-asr1002-en","tag-cisco-asr1006-en","tag-cisco-asr1008-en","tag-cisco-asr100x-en","tag-cisco-asr9k-en","tag-made4flow-en","tag-netflow-en","tag-netflow-configuration-en","tag-netflow-configuration-en-2","tag-netflow-configuration-on-cisco","tag-netflow-on-cisco-en","tag-netflow-on-cisco-en-2","tag-netflow-v5-en","tag-netflow-v9-en"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/11871","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=11871"}],"version-history":[{"count":0,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/11871\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media\/8476"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=11871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=11871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=11871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}