vineetsha Wed, 04/29/2009 - 04:02
User Badges:


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.


ip route-cache flow


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



amitmarathe Wed, 04/29/2009 - 04:17
User Badges:

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."

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.

amitmarathe Wed, 04/29/2009 - 04:29
User Badges:

Does ip accounting will work with this image as in the feature nevigator it is not showing.

vineetsha Wed, 04/29/2009 - 04:38
User Badges:

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.




amitmarathe Wed, 04/29/2009 - 04:43
User Badges:

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.

Vishnu Asok Wed, 01/25/2012 - 13:03
User Badges:
  • Cisco Employee,

"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


This Discussion