After you enable NetFlow on an interface, NetFlow reserves memory to accommodate a number of entries in the NetFlow cache. Normally, the size of the NetFlow cache meets the needs of your NetFlow traffic rates. The cache default size is 64K flow cache entries. Each cache entry requires 64 bytes of storage. About 4 MB of DRAM are required for a cache with the default number of entries. You can increase or decrease the number of entries maintained in the cache, if required. For environments with a large amount of flow traffic (such as an Internet core router), Cisco recommends a larger value such as 131072 (128K). To obtain information on your flow traffic, use the show ip cache flow command.
A NetFlow cache can be resized depending on the platform and the amount of DRAM on a line card. For example, the NetFlow cache size is configurable for software-based platforms such as Cisco 75xx and 72xx series routers. The amount of memory on a Cisco 12000 line card determines how many flows are possible in the cache.
Using the ip flow-cache entries command, configure the size of your NetFlow cache from 1024 entries to 524,288 entries. Use the cache entries command (after you configure NetFlow aggregation) to configure the size of the NetFlow aggregation cache from 1024 entries to 524,288 entries.
About the NTOP tutorialâŚitâs best to stick to the âofficialâ tutorials for this. I could create one but itâs probably outdated in a few months when they introduce a newer version.
Thanks for a crisp explanation.
However i wanted to understand further usage of Netflow. Can it only be use to monitor traffic pattern or it can be used to increase network performance also.
Abhishek,
Netflow is used just for information gathering. It does not take action on its own. To do that, you can use a feature called Performance Routing (PfR). PfR actually does use Netflow in something called PfR passive mode to help it make decisions about how to optimize your environment.
I would advise that you can put your ideas for the new lessons here: https://networklessons.com/member-ideas/
In this way, there will be votes so Rene can prepare topics that are more requested than others.
Yes, it is possible to configure netflow on a dialer interface. Just keep in mind that whenever you do so, you must also configure netflow on the associated virtual interface as well. This is because the dialer interface will send ONLY outbound traffic to the netflow server while the virtual interface will send ONLY inbound traffic. This is because of the nature of the relationship between dialer and virtual interfaces. According to Cisco:
This is the expected behaviour. Traffic leaves the router via the Dialer interface, as dictated by the IP routing table. Traffic enters the router via the Virtual-Access interface.
This is just the way Cisco has implemented routing via dialer interfaces.
I think a typo here see below you say âCan`tâ I think you mean âcanâ??
One of the things we canât do with those tools is tracking all flows in our network. A flow is a stream of packets that share the same characteristics like source/destination port, source/destination address, protocol, type, service marking, etc.
NM you was talking about SNMP and NBAR not Netflow I see now. my bad.
Looking at several of the Cisco commands for Netflow, it does look like you can use the hostname instead of the IP address. Take a look at this command reference documentation for Netflow on Cisco which includes either IP address or hostname for most commands.
Flow exporters are used to export Flexible NetFlow data to remote systems such as a UNIX server running NetFlow collector. You can find out more about them at this Cisco documentation which includes prerequisites, restrictions and additional information.
I see you have PC is it suppose to reach the internet? I setup this lab in GNS3 then added NAT and had to change one interface to ip address dhcp. then my router could get to the internet but the PC could not. In order for my inside network to reach the internet I would need to setup NAT on my R1 router as well. in order for this lab to work do we need to have that internet access or was the other items just kind of for looks but really didnât need to reach internet?
This does not seem to be working for me hmm I added an application called ntopng which I thought was the same app. Here is my topology:
basically my config is below though I need to change something as my firefox browser is not getting to the internet and I cannot poing 8.8.8.8 for the linux command prompt⌠I had not really focused on that as I was messing with the netflow.
hostname R1
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/1
ip address dhcp
ip flow ingress
ip nat outside
!
ip flow-export source FastEthernet0/0
ip flow-export version 9
ip flow-export destination 192.18.1.1 2055
!
ip nat inside source list 1 interface FastEthernet0/0 overload
!
access-list 1 permit any
!
end
when I looked at the ntopping website it said no traffic⌠:*(