Hot Standby Router Protocol (HSRP) (2024)

Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol, which provides redundancy for a local subnet. In HSRP, two or more routers gives an illusion of a virtual router. It is a redundancy protocol.

HSRP allows you to configure two or more routers as standby routers and only a single router as an active router at a time. All the routers in a single HSRP group shares a single MAC address and IP address, which acts as a default gateway to the local network. TheActive routeris responsible for forwarding the traffic. If it fails, theStandby routertakes up all the responsibilities of the active router and forwards the traffic.

Hot Standby Router Protocol (HSRP) (1)

HSRP uses a simple and straightforward concept. This concept is known as anactive/passive (standby)concept. The following steps describe this concept.

  • Form a group of all available devices.
  • Select a device as the main device.
  • Keep only the main device in the active state.
  • Put all other devices in the passive state or standby state.
  • If the main device fails, select a passive device from the available passive devices and make it an active device by changing its state to active. Here, there is no standby router.

Before we explore this concept in more detail, let's briefly discuss HSRP terminology.

Virtual Router

A virtual router connects the local subnet to the main gateway router. The hosts of the local subnet forward data packets to the virtual router, and the virtual router forwards them to the destination. A virtual router is not a physical router. It is a role that is held by one member router of the HSRP group. In simple words, a virtual router is the currently active default router.

Active router

An active router is themainrouter. An active router is a physical router that plays the role of a virtual router. It receives the traffic from the local subnet and forwards that traffic to the destination.

Standby router

A standby router is thebackuprouter of the main router. If themainrouter fails, thestandbyrouter quickly takes over the responsibilities of themainrouter. In other words, if the main router fails, HSRP automatically transfers the role of the virtual router to the standby router.

Priority: By default, the priority value is 100. It is helpful when the active router comes back after falling down, we can change the priority of standby router (which has become the active router after the original active router is down) to less than 100 therefore it again becomes standby router.

Note:The router having higher priority will become the active router.

HSRP Configuration Process and Commands

Initial configuration

ConfigureRouter0 and Router1 as shown in the following image.

1.Take two router-PT, router 0 and router 1 and a device, PC-PT PC 0

2.Take a switch 2960-24TT

3.Establish connection through Cu- straight through from router 0 to switch 0 using Fa 0/0 and Fa 0/15, from router 1 to switch 0 using Fa 0/0 and Fa 0/18 and from PC 0 to switch 0 using Fa 0 to Fa 0/16

Hot Standby Router Protocol (HSRP) (2)

Router0 (main gateway router) configuration

Router>enable

Router#configure terminal

Router(config)#interface FastEthernet0/0

Router(config-if)#no shutdown

Router(config-if)# ip address 10.0.0.1 255.0.0.0

Hot Standby Router Protocol (HSRP) (3)

Router1 (backup gateway router) configuration

Router>enable

Router#configure terminal

Router(config)#interface FastEthernet0/0

Recommended by LinkedIn

SLA's - Can you live without them ? Gary Puddick 4 years ago
How to Simulate Network Outages Stefano Gridelli 5 years ago
What are the Reson to use VTP Modes? Hector Cardenas 1 year ago

Router(config-if)#no shutdown

Router(config-if)# ip address 10.0.0.2 255.0.0.0

Hot Standby Router Protocol (HSRP) (7)

In HSRP configuration we only need one command to configure the initial HSRP, and that command is the following.

Router(config-if)#standby group-id ip ip-address

You need to execute this command from thesub-configurationmode of the interface that provides the default gateway functionality. This command requires two parameters: group-id and ip-address. Thegroup-idis the group number of HSRP. Theip-addressis a virtual IP address that you want to use as the default gateway IP address.

You need to execute the same command on all interfaces (main interface and backup interfaces) that you want to use as a default gateway for the local subnet.

To configure HSRP on both interfaces, we will use the following command.

Router(config-if)#standby 1 ip 10.0.0.10

This command will set the HSRP group number to1and the virtual default gateway IP address to10.0.0.10. You can select any group number from the range0 - 4095. But after selecting the group number, use the same group number on both the main interface and backup interfaces.

We should select the virtual IP address that belongs to the IP subnet of the main physical gateway interface.

HSRP configuration of Router0 (main gateway router)

Router(config-if)#standby 1 ip 10.0.0.10

Router(config-if)#standby 1 priority 110

Hot Standby Router Protocol (HSRP) (8)

The router 0 changes to active state.

HSRP configuration of Router1 (backup gateway router)

Router(config-if)#standby 1 ip 10.0.0.10

Hot Standby Router Protocol (HSRP) (9)

The router 1 changes to standby state.

Verifying HSRP configuration

We can use the'show standby'command to view the current state of the router or know the HRSP group number and virtual IP address.

At Router 1,

Hot Standby Router Protocol (HSRP) (10)

At Router 0,

Hot Standby Router Protocol (HSRP) (11)

If HRSP is configured, HRSP automatically replaces the failed gateway router with an available standby router.

To make the Router 0 inactive (failed gateway router), we can use the 'shutdown'command.

Hot Standby Router Protocol (HSRP) (12)

The Router 0 changes to inactive state and goes back to the initialization stage.

Whereas, the Router 1 by default changes to active state as shown below.

Hot Standby Router Protocol (HSRP) (13)
Hot Standby Router Protocol (HSRP) (14)
Hot Standby Router Protocol (HSRP) (2024)
Top Articles
How to Sell Bonds | The Motley Fool
Privacy Fix: How to Find Old Online Accounts - Consumer Reports
Best Pizza Novato
Best Big Jumpshot 2K23
Combat level
Atvs For Sale By Owner Craigslist
2024 Fantasy Baseball: Week 10 trade values chart and rest-of-season rankings for H2H and Rotisserie leagues
Crossed Eyes (Strabismus): Symptoms, Causes, and Diagnosis
Academic Integrity
Red Wing Care Guide | Fat Buddha Store
Doby's Funeral Home Obituaries
Craigslist Chautauqua Ny
About Us | TQL Careers
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Tnt Forum Activeboard
Xomissmandi
Iu Spring Break 2024
Buy Swap Sell Dirt Late Model
Sprinkler Lv2
Lowes Undermount Kitchen Sinks
Tyler Sis University City
Marion City Wide Garage Sale 2023
The Listings Project New York
How to Make Ghee - How We Flourish
Horn Rank
Craiglist.nj
Vera Bradley Factory Outlet Sunbury Products
Waters Funeral Home Vandalia Obituaries
Ordensfrau: Der Tod ist die Geburt in ein Leben bei Gott
County Cricket Championship, day one - scores, radio commentary & live text
Chadrad Swap Shop
Ff14 Laws Order
Play 1v1 LOL 66 EZ → UNBLOCKED on 66games.io
Graphic Look Inside Jeffrey Dresser
Stolen Touches Neva Altaj Read Online Free
Nsu Occupational Therapy Prerequisites
Devin Mansen Obituary
The Mad Merchant Wow
Shoreone Insurance A.m. Best Rating
Ise-Vm-K9 Eol
Author's Purpose And Viewpoint In The Dark Game Part 3
Craigslist Woodward
VerTRIO Comfort MHR 1800 - 3 Standen Elektrische Kachel - Hoog Capaciteit Carbon... | bol
The Cutest Photos of Enrique Iglesias and Anna Kournikova with Their Three Kids
Sky Dental Cartersville
Ouhsc Qualtrics
Santa Ana Immigration Court Webex
Sleep Outfitters Springhurst
Diamond Desires Nyc
Vcuapi
Tamilyogi Cc
OSF OnCall Urgent Care treats minor illnesses and injuries
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5878

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.