Cisco HSRP Configuration with GNS3

hsrp-configuration-on-cisco-ipcisco.com

How to Configure HSRP on Cisco Routers?

HSRP (Hot Standby Router Protocol) is one of the First Hop Redundancy Protocol (FHRP) that is Cisco proprietary. To configure HSRP on Cisco devices, there are specific configuraiton commands. In this lesson, we will learn HSRP Configuration, on Cisco routers.

 

For our Cisco HSRP Configuration Example on GNS3, we will use the below GNS3 network topology. Some of the below configurations has done before this example. Here, we will focus on HSRP part only. As a summary, on each router, below configurations is needed.

 

hsrp-configuration-on-cisco-ipcisco.com

R1 & R2

  • IP address Configurations
  • Static Route Configurations
  • HSRP Configurations

R3

  • IP address Configurations
  • Static route Configurations

 

The ip configurations of the topology will be done, like the topology picture.

 

Now, let’s start our Cisco HSRP Configuration with Router 1.

 


You can Download GNS3 HSRP Configuration File.


Cisco HSRP Configuration ın Router 1

On Router 1, at the beginning, we will configure the interface ip address. After that we will start HSRP Configuration. Firstly, we will assign HSRP Group Number as 10. Then, we will assign a Priority value as 110. As you know, by default HSRP priority is 100. And the router that has the highest HSRP priority is elected as Active Router. After that, we will usee “preempt” command to open preemption. Laslty, for tracking, we will assign a decrement value for a link. If a failure occurs in this link, then priority value will decrease and this will effect Active router selection.

 


R1(config)#int fa0/1
R1(config-if)# ip address 10.0.0.1 255.255.255.0
R1(config-if)# standby 10 ip 10.0.0.3                    //Assigning group for HSPR ‘10’
R1(config-if)# standby 10 priority 110                   // Assigning priority
R1(config-if)# standby 10 preempt                        // Forceful assignment of active role
R1(config-if)# standby 10 track FastEthernet0/0 20       //Tracking the WAN interface for Failover

 


 

HSRP Configuration on Router 2

We will configure Router 2 like Router 1. Here, we will only not used a tracking command and give a different HSRP priority value. The physical interface of this router will be different but the Standby IP address will be the same of Router 1.

 


R2(config)#int fa0/0
R2(config-if)# ip address 10.0.0.2 255.255.255.0
R2(config-if)# standby 10 ip 10.0.0.3                    //Assigning group for HSPR ‘10’
R2(config-if)# standby 10 priority 100                   // Assigning priority (100 - Default)
R2(config-if)# standby 10 preempt                        // Forceful assignment of active role

 


 

HSRP Configuration Verification

To verify our Cisco HSRP Configuration, firstly we will use “show standby brief” command onn R1 and R2. With this command, we will see the  Active and Standby routers. As you can see below, R1 is the Active Router.

 

hsrp-configuration-ipcisco.com-1

 

And, R2 is the Standby router, in other words, backup router.

 

hsrp-configuration-ipcisco.com-2

 

The traffic will traverse via R1, because R1 is the Active router..

hsrp-configuration-ipcisco.com-3

 


 

HSRP Failover Verification

To test our HSRP Configuration during a failure, we will shut down fa0/0 interface of R1 . Remember, we have track configured in HSRP for fa0/0 whose action is to decrement the priority value by 20 when the interface goes down.

 

hsrp-configuration-ipcisco.com-4

 

After this shutdown, Router 1 fa0/0 interface HSRP priority will decrement 90 from 110. And this will make Router 1 as new Standby router. Because, Router 2 has priority value as 100 and this is higher that the new priority value of Router 1.

 

hsrp-configuration-ipcisco.com-5

 

As you can see below, Router 2 is now in Active state.

hsrp-cisco-configuration-ipcisco.com-6

 

And if we use, trace command to check the traffic way, we will see that, traffic will go through Router 2.

 

hsrp-cisco-configuration-ipcisco.com-7

 

In this lesson, we have learned Cisco HSRP Configuration on GNS3. If you would like to learn HSRP more, you can also check HSRP Lesson and HSRP Cisco Configuration on Packet Tracer.

 


All First Hop Redundancy Lessons:

What is FHRP (First Hop Redundancy Protocol)? | HSRP vs VRRP vs GLBP

What is HSRP (Hot Standby Router Protocol)?

What is VRRP (Virtual Router Redundancy Protocol)?

What is GLBP (Gateway Load Balancing Protocol)?

Cisco HSRP Configuration Example

HSRP Configuration with GNS3

Cisco VRRP Configuration Example

Cisco GLBP Configuraton Example


 

Lesson tags: FHRP, hsrp, Cisco HSRP, HSRP Configuration, Hot Standby Router Protocol
Back to: CCNP Enterprise 350-401 ENCOR v1.1 > First Hop Redundancy

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR v1.1

Collapse
Expand