I have routers with very many static routes, many of which I suspect are no longer needed. Is there some command that will show the number of matches for each "ip route" statement? cf. show access-list for matches of ACLs. Does anybody know any other trick to remove unnecessary static route statements? Thank you.
It would be convenient if there were some variation on show ip route which would include a hit count similar to the hit count in show access-list, but I do not believe that this exists.
There are are couple of alternatives which may help you achieve your objective. Probably the most simple is to configure ip accounting on the interfaces and to look in the accounting statistics for matches to the destinations configured in the static routes. A similar approach is to configure netflow on the interfaces and to look in the netflow records for destinations that match the netflow records.
Depending on the static routes and how many different next hops are specified, an approach that is a bit more complex but with results more similar to what you describe would be to configure Policy Based Routing. You would configure PBR and in the route map there would be an instance for each next hop specified in the static routes. Each instance in PBR would have an access list which would permit any to the destinations specified in static routes and the set clause would specify the same next hop as specified in the static route. This PBR would not change any routing logic, but the matches to the access lists would give you counters that show what static routes are getting hits.
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...