cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12296
Views
0
Helpful
6
Replies

ASR 1006 router netflow and ipaccounting configuration.

amitmarathe
Level 1
Level 1

I want configuration steps to configure netflow and ip accounting on ASR router

6 Replies 6

vineetsha
Level 1
Level 1

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

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.

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

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

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
Cisco Employee
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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco