Skip Links

Network World

Brad Reese

How to configure HSRP on a Cisco router

By Brad Reese on Thu, 07/17/08 - 6:12pm.
Newsletter Signup

Cisco How-To Tutorials

Hot Standby Router Protocol (HSRP) provides redundancy for IP networks, ensuring that user traffic immediately and transparently recovers from first hop router failures.

HSRP allows multiple routers on a single LAN to share a virtual IP and MAC address, which is configured as the default gateway on the hosts.

From the group of routers configured in a HSRP group, one router is elected as the active router and another as a standby router.

The active router assumes the role of forwarding packets sent to the virtual IP address.

If the active router fails, the standby router takes over as the new active router.

HSRP is useful for hosts that do not support a router discovery protocol, such as ICMP Internet Router Discovery Protocol (IRDP) and it cannot switch to a new router when the router configured as the default gateway fails or reloads.

All HSRP commands are configured under the interface configuration mode of a router.

To configure HSRP, issue the standby [group-number] ip [ip-address] command and assign the virtual IP address for a group.

Use the same group number and virtual IP address on other routers, which provide redundancy for that group.

This is the only command that is necessary to enable HSRP.

Other HSRP commands are optional and can be configured if required.

To influence a particular router to be elected as the active router, issue the standby [group-number] priority [priority] command and configure the priority.

The one with the highest priority functions as the active router and the one with the second highest priority functions as the standby router.

The interface IP address is used as the tie breaker in the event of the same priority on multiple routers.

The active router is the one with the highest IP address.

If the local router has priority over the current active router, issue the standby [group-number] preempt command.

The local router should attempt to take its place as the active router.

You can configure HSRP to use authentication and accept HSRP packets only from trusted devices.

HSRP can also be configured to track the status of an interface and adjust its priority to function as an active or standby router for a group.

This is useful if more than one router can reach a particular network and one router is preferred over the other for forwarding packets, based on the status of a link.

A router can be configured to use the Burned-in MAC Address (BIA) of an interface as the virtual MAC address instead of the standard HSRP MAC address.

This is useful in situations when using the HSRP MAC address can create problems, as in Token Ring source route bridge environments and FDDI networks.

For more information on HSRP configuration with examples refer to:

Configuring the Hot Standby Router Protocol


View more Cisco How-To Tutorials

Contact Brad Reese
http://www.BradReese.Com

Search 54,082 current Cisco Job openings worldwide!

Brad's Top 5 Story Picks
# 1. Cisco CCIE number reached 21419 on July 8th, 2008
# 2. Cisco vs. Nortel: Who's the customer support champ?
# 3. Cisco consummates agreement with legendary reseller CXtec
# 4. Cisco resume tips
# 5. Silver lining in Cisco stock decline: Tough times help Cisco gain market share
Story Archives Brad Reese on Cisco Story Archives

Cisco VoIP Gateways

Cisco Power Supplies

Cisco Aironet Wireless

Cisco Refurbished Inventory Availability

  

Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
A classic scam to defraud Cisco's SMARTnet program
America's Best profile written by Useem regarding Chambers' success
Avian Securities Senior Telecom Research Analyst - Catharine Trebnick
Breakingviews.com correspondent - Robert Cyran
CCIE
Careers
Charlie Giancarlo - Managing Director of Silver Lake Partners and Skype investor
Cisco
Cisco ASR 9000 architecture
Cisco ISR G2 Module Support
Cisco Integrated Services Router Generation 2 (ISR G2) Model Comparison
Cisco Integrated Services Routers Generation 2 Portfolio
Cisco Unified Communications Support for Microsoft Windows 7
Cisco is pushing their ASR 9000 at very competitive prices
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco technical star Jonathan Rosenberg
Cisco will have no liability for any delay in delivery
Data Center
Douglas Smith - Cofounder and President of Network Instruments
Expand visibility of NetFlow-dependent NBAD and compliance applications
GigaStor captures and converts packets in NetFlow data flows
Index Venture partner Danny Rimer
Jonathan Rosenberg - a Cisco Fellow in Cisco's Voice Technology Group
Juniper MX960 lab test results
LANs / WANs
Mark Roberts - Polycom vice president of partner marketing
Michael Useem - Professor of Management
Microsoft
NetFlow
NetFlow add-ons
NetFlow overhead can overtax infrastructure
Network Behavior Anomaly Detection (NBAD)
Network Management
Non-NetFlow capable devices are blind to local traffic
Produce NetFlow about any device
SMB
Security
Selection committee member for America's Best Leaders
September 2009 vs. October 2009 Worldwide CCIE Count Comparison
Silver Lake Managing Director - Egon Durban
Skype's cofounders Niklas Zennstrom and Janus Friis
Software
The Charlie angle is to keep Dave Roux on track
The new Cisco ISR G2 portfolio is priced as follows
VoIP / Convergence
What are the benefits of GigaStor NetFlow Agent?
What’s new on the Cisco ISR G2 models vs. the old ISR models?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
eBay CEO - John Donahoe
sFlow
sFlow and NetFlow provides extended visibility
On The Web
Twitter