Reliability is an extremely important aspect in networking.
A network that has been designed without the provision of redundancy is a network with a limited life span.
Customers demand to have 100% service availability, while more and more time sensitive services are injected into networks such as voice and video over IP. These services need to be reliable, hence redundancy is a prerequisite in this case.
Cisco’s proprietary Hot Standby Routing Protocol (HSRP) has been designed to provide the software intelligence needed for your extra hardware to successfully provide redundancy in your network.
In this article we’ll take a look at HSRP’s operation in detail and examine, with the help of sample network diagrams, how to configure and enable HSRP.
There are several key points of HSRP’s operation. Some might say these are the things that put the hot in HSRP:
HSRP enabled routers exchange HSRP HELLO packets between each other. These HELLO packets are destined to the multicast IP address 224.0.0.2 on UDP port 1985. It’s a good idea to write that down, because I have seen cases where a forgotten access list has prevented the transmission of these messages.
The router with the highest priority will become the active router. Regardless of which router becomes active and which becomes standby, all routers exchange HELLO packets at regular intervals.
The active router makes use of the virtual HSRP MAC address. This MAC address has a standard address scheme. It is composed of 0000.0C07.ACxy where xy is the configured HSRP group number in hexadecimal notation.
Configuring HSRP is not that hard. All the necessary configurations are performed in the Interface Configuration Mode of the router. Thes are all the steps:
Similar configuration is done on all HSRP enabled routers. Remember to always configure standby routers with a lower priority then your master router.
The following diagram presents a typical HSRP network design. The necessary configuration commands for both routers are provided. Notice the configured priorities and the Virtual IP address which is also configured on the clients as default gateway.

In cases you have more than one path to a given destination, HSRP can be configured in such a way as to provide load sharing behavior. The following sample network diagram presents such a case:
RouterA is the active router for group 1 and the standby router for group 2, while RouterB is the active router for group 2 and the standby router for group 1.
The configuration commands for the above network are:

With HSRP you can sleep peacefully at night. The sophistication of the protocol allows for dynamic and transparent network topology changes in order to achieve high network reliability with uninterrupted operation.
At any time you can check the status of HSRP and identify your master and standby routers by issuing the show standby command. A change in HSRP status triggers a syslog message alarm which indicates that a router switchover has taken place.
We offer Cisco training for all levels — beginner to advanced!
Whether you’re going for your CCENT or your CCNP — we got you covered!
And unlike other training materials out there, we include everything you need to pass your exams — complete coverage of exam objectives, real world examples, and plenty of practice exam questions.
Rudy Says:
May 19th, 2008 at 4:16 pm
Where have I heard this before sounds freakishly familar;
“HSRP uses a configurable priority value to determine which HSRP router within a given group is to be the default master router.”
Not terribly important it just rang familar from some long ago reading of course unrelated to Cisco Routers.
How often do primary routers fail? Was thinking about the set up in one of the courses believe it had to do with Frame Relay and ISDN, primary and secondary paths. Is that still used? Is there a high failure rate in that case also?
Stelios Says:
May 20th, 2008 at 3:05 pm
There is no single answer to your question. Primary routers do fail sometimes. The scary thing is that you never know when you might come accross a total or even a partial crash.Resilience in a network is a major issue when factors such as reliability, ongoing service and stability are of great importance. In an ISP environment service interaption is a “no case”. Everything, both hardware and software are double. Some are working in active-standby mode, some in load sharing.There are cases that you can not tolerate even the possibility of downtime.
Yes, actually ISDN connection is often used as a secondary option when the primary connection fails. The failure rate in this case can not be measured. It could be high but it could also be inexistent. It depends on the carrier network, network hardware, configuration, resilience…