HSRP Configuration on Cisco IOS

hsrp-topology

HSRP Configuration Example on Cisco Routers

In this section we will do an HSRP Cisco Configuration to understand the issue better. To do this we will use the below HSRP topology. At the end of this article, you will find the GNS3 configuration lab of this lesson.

redundancy protocols HSRP example (Hot Standby Router Protocol) topology, protocols for redundancy
 

HSRP Example Topology
 

Before the HSRP (Hot Standby Router Protocol) configuration, we must prepare our topology. We will change the router names and we will assigned the ip addresses of the router interfaces.

For the left side of the topology, we will use 10.10.10.0 network and for the right side, we will use 10.10.20.0 network. All the interfaces connected to the layer 2 swicth will be assigned with the ip addresses related to its connected port. For example the fa0/0 interface of the Site1 router will be assigned the ip address 10.10.10.1 and the GW1’s and GW2’s fa0/0 ip addresses will be 10.10.10.2 and 10.10.10.3 orderly.

After interface configuration, we will configure a static route on each Site1 and Site2. In this static route we will use two virtual ip addresses that we will explain in this article. This virtual addresses will be 10.10.10.10 and 10.10.20.20.

Site1(config)# ip route 10.10.20.0 255.255.255.0 10.10.10.10 
Site2(config)# ip route 10.10.10.0 255.255.255.0 10.10.20.20

Now our configuration is ready to HSRP configuration. Let’s start on one side(left) on GW1 and GW2 and after that we will configure a second HSRP Cisco Configuration for the other side(right).

GW1

GW1(config)# interface fastethernet 0/0 
GW1(config-if)# standby 1 ip 10.10.10.10 
GW1(config-if)# standby 1 preempt 
GW1(config-if)# standby 1 priority 110 
GW1(config-if)# standby 1 track fa0/1  
GW1(config-if)# exit 
GW1(config)# interface fastethernet 0/1 
GW1(config-if)# standby 1 ip 10.10.20.20 
GW1(config-if)# standby 1 preempt 
GW1(config-if)# exitGW2

GW2

GW2(config)# interface fastethernet 0/0 
GW2(config-if)# standby 1 ip 10.10.10.10 
GW2(config-if)# standby 1 preempt 
GW2(config-if)# standby 1 priority 100 
GW2(config-if)# standby 1 track fa0/1  
GW2(config-if)# exit 
GW2(config)# interface fastethernet 0/1 
GW2(config-if)# standby 1 ip 10.10.20.20 
GW2(config-if)# standby 1 preempt 
GW2(config-if)# exit

You do not need to do this HSRP Cisco Configuration for both sides, but in this configuration, we do it for both sites. After this you can check the configuration with “show standby” command on GW1 and GW2. As you see below, for both redundancy configuration GW1 is the active router and the GW2 is the standby.

redundancy protocols HSRP (Hot Standby Router Protocol) show standby on active router cisco
 

Show Standby On Active Router (HSRP)
 

redundancy protocols HSRP (Hot Standby Router Protocol) show standby on standby router cisco
 
Show Standby On Standby Router (HSRP)
 

4 Responses to “HSRP Configuration on Cisco IOS”


  • Jamel / / Reply

    Good morning,
    There is some issues with the configuration steps. In the log it shows two groups but in the configuration, only one group is configured.
    I have configured both groups. When I shut down f0/0 on GW1, traffic to 10.10.10.1 becomes unreachable and traceroute from site 1 is not successful:
    Site1#traceroute 10.10.20.1
    Type escape sequence to abort.
    Tracing the route to 10.10.20.1
    VRF info: (vrf in name/id, vrf out name/id)
    1 10.10.10.3 60 msec 60 msec 40 msec
    2 * * *
    3 * * *
    4 * * *
    5 * * *
    6 * * *

    Would you please help me fix this issue.
    Thanks,

  • Swaroop Shirote / / Reply

    Problem same

  • I find same problem. but when i shutdown both interface n GW1 it finaly switch to the other route… why was that???

  • HI I need some help with a ASR 9006 has NX ios trying to connect it to a ASR 920 and not seeing the group both seem to be ACTIVE any help would be great! no standby on one of them just active on both…..
    Thank you in advance
    Frank

Leave a Reply

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