Debugging HSRP

Problem

You want to debug an HSRP problem.

Solution

To debug all HSRP error events, use the following command:

Router2#debug standby errors

The events keyword will display information about HSRP events:

Router2#debug standby events

With the packets keyword, you can look at the contents of all HSRP packets:

Router2#debug standby packets

You can use the terse keyword to see a short form of all HSRP errors, events, and packets:

Router2#debug standby terse

Discussion

HSRP is not a very complex protocol, and it is relatively simple to configure, so network engineers generally don’t find that they need sophisticated debugging tools that are available with other protocols. Consequently, HSRP debugging facilities were relatively limited until IOS level 12.1(0.2), when the enhanced debugging described here was introduced. However, these features can be useful when you are faced with strange HSRP problems, such as general instability or multiple active routers.

We don’t recommend starting with a packet level debug for anything because it can easily overwhelm the router. In the case of HSRP, which should only send a Hello packet every three seconds by default, this shouldn’t be quite as dangerous as for many other protocols.

The debug standby terse command is probably the most useful option because it gives a short form output of all HSRP errors, events, and packets:

Router1#debug standby terse HSRP: HSRP Errors debugging is on HSRP Events debugging is on (protocol, redundancy, track) HSRP ...

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.