Keeping Statistics on Routing Table Changes

Problem

You want to keep statistics on how stable your routing table is.

Solution

IOS Version 12.0 introduced a seldom-used feature that allows you to statistically monitor fluctuations in your routing tables:

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip route profile
Router(config)#end 
Router#

Once this command is enabled, you can check the stability of your network:

Router#show ip route profile
IP routing table change statistics:
Frequency of changes in a 5 second sampling interval
-------------------------------------------------------------
Change/   Fwd-path  Prefix   Nexthop  Pathcount  Prefix
interval  change    add      change   change     refresh
-------------------------------------------------------------
0         327       327      335      335        331
1         4         4        0        0          1
2         2         2        0        0          1
3         0         0        0        0          0
4         1         1        0        0          1
5         1         1        0        0          1 
10        0         0        0        0          0
15        0         0        0        0          0 
20        0         0        0        0          0 
25        0         0        0        0          0 
30        0         0        0        0          0 
55        0         0        0        0          0 
80        0         0        0        0          0 
105       0         0        0        0          0 
130       0         0        0        0          0 
155       0         0        0        0          0 
280       0         0        0        0          0 
405       0         0        0        0          0 
530       0         0        0        0          0 
655       0         0        0        0          0 
780       0         0        0        0          0 
1405      0         0        0        0          0 
2030      0         0        0        0          0 
2655      0         0        0        0          0 
3280      0         0        0        0          0 
3905      0         0        0        0          0 
7030      0         0        0        0          0 
10155     0         0        0        0          0 
13280     0         0        0        0          0 
Overflow  0         0        0        0          0 
Router#

Discussion

It is often extremely difficult to tell when there are stability problems in your network. This command doesn’t tell you much about what the problems are, but it can at least tell you how serious the problems are. However, to be useful, you must check these ...

Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.