04-28-2009 09:48 PM - edited 03-04-2019 04:34 AM
I want configuration steps to configure netflow and ip accounting on ASR router
04-29-2009 04:02 AM
Hi
You can try the following steps:
Enable Cisco Express Forwarding:
router(config)# ip cef
In the configuration terminal on the router, issue the following to start NetFlow Export.
It is necessary to enable NetFlow on all interfaces through which traffic you are interested in will flow. Now, verify that the router is generating flow stats - try 'show ip cache flow'. Note that for routers with distributed switching (GSR's, 75XX's) the Rendezvous Point CLI will only show flows that made it up to the RP. To see flows on the individual linecards use the 'attach' or 'if-con' command and issue the 'show ip cache flow' on each LC.
Enable export of these flows with the global commands. 'ip flow-export source' can be set to any interface, but one which is the least likely to enter a 'down' state is preferable. Netflow will not be exported if the specified source is down. For this reason, we suggest the Loopback interface, or a stable Ethernet interface:
router(config)# ip flow-export version 5
router(config)# ip flow-export destination
router(config)# ip flow-export source FastEthernet0
Use the IP address of your NetFlow Collector and configured listening port.
If your router uses BGP protocol, you can configure AS to be included in exports with command:
router(config)# ip flow-export version 5 [peer-as | origin-as]
The following commands break up flows into shorter segments.
router(config)# ip flow-cache timeout active 1
router(config)# ip flow-cache timeout inactive 15
Use the commands below to enable NetFlow on each physical interface (i.e. not VLANs and Tunnels, as they are auto included) you are interested in collecting a flow from. This will normally be an Ethernet or WAN interface. You may also need to set the speed of the interface in kilobits per second. It is especially important to set the speed for frame relay or ATM virtual circuits.
interface
ip route-cache flow
bandwidth
Now write your configuration with the 'write' or 'copy run start' commands. When in enabled mode, you can see current NetFlow configuration and state with the following commands:
router# show ip flow export
router# show ip cache flow
router# show ip cache verbose flow
Regards
Vineet
04-29-2009 04:17 AM
Thanks for the input. I forworded the same to customer.
Customer has enabled ip accounting on the interface. But no ip packets are showing on that.
image is running on the cisco router ASR1006 is
System image file is "bootflash:asr1000rp1-ipbasek9.02.02.01.122-33.XNB1.bin"
the configuraton done on the interface:
interface GigabitEthernet0/0/3
no ip redirects
no ip unreachables
no ip proxy-arp
ip accounting output-packets
load-interval 30
no negotiation auto
no cdp enable
But while show ip accounting no output is showing as the traffic is flowing through it.
04-29-2009 04:29 AM
Does ip accounting will work with this image as in the feature nevigator it is not showing.
04-29-2009 04:38 AM
Hi Amit
I suppose ASR is being used as an internet facing device. So using ip accounting or cache-flow/fast switching is not advisable. Netflow output should be sufficient.
HTH
Regards
Vineet
04-29-2009 04:43 AM
I agree on that but customer want this to be working on the same. In which its not showing ip accounting output. Wht to do in this case.
01-25-2012 01:03 PM
"show ip accounting " will not fetch you any output on ASR routes at the moment as this is not supported on this platform yet. This has been documented in bug -CSCth37116
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide