The key components of NetFlow are the cache stores that hold IP flow information and an export mechanism that can send NetFlow data to a remote collector such as the Cisco NetFlow Collector.
Set flow source destination as local device:
Router(config)#: ip flow-export source loopback 0
Set NetFlow export version:
Router(config)#: ip flow-export version 5 peer-as
Specify the NetFlow collector for exported records:
Router(config)#: ip flow-export destination x.x.x.x 9995