Hot Standby Router Protocol (HSRP) Configuration

For (HSRP) configuration, we will be use the sample network’s topology below. We will be the configuring routers R1 & R2 for HSRP.

R1 Configuration:

R1(config)#interface GigabitEthernet 0/0/0

R1(config-if)#ip address 192.168.1.2 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#standby 1 ip 192.168.1.1

 

R2 Configuration:

R2(config)#interface GigabitEthernet 0/0/1

R2(config-if)#ip address 191.168.1.3 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#standby 1 ip 192.168.1.1

 

R2 has been selected as the active routers:

*Aug 29 04:45:24.718: HSRP-5-STATECHANGEs: Ethernet0/0 Grp 1 state Standby -> Active

 

R1 become the Standby Routers:

*Aug 29 04:48:55.209: %HSRP-5-STATECHANGE: Ethernet0/0 Grp 1 state Speak -> Standby

 

Why is that? The priority is used to the select Active Router and Standby Router for HSRP group. In case of equal priority, router with highest IP address in group will be selected as active. If there are more than two routers in group, the second-highest IP address are determining Standby Router, and the other router or routers are in the Listen states.

 

To verify HSRP status, we can enter ‘show standby’ command:

R2#show standby

GigabitEthernet0/0/1 - Group 1

  State is Active

    2 state change, last states change 00:01:01

  Virtual IP address is 192.168.1.1

  Active virtual MAC address is 0000.0c07.ac01

    Local virtual MAC address 0000.0c17.ac01 (v1 default)

  Hello timer 3 secs, hold time 10 sec.

    Next hello sent in 0.128 secs

  Preemption disabled

  Active router is local

  Standby router is 192.168.1.2, priority 100 (expires in 8.624 sec)

  Priority 100 (default 100)

  Group name is "hsrp-Et0/0-1" (default)

Router R2 are Active. We can see Virtual MAC Address of 0000.0c07.ac01. Standby Router is R1 192.168.1.2.

 

 

 

Verify HSRP Configuration

If we want do ‘show interfaces Gigabit Ethernet 0/0/1’ from R2 then we can see that Virtual MAC Address (0000.0c07.ac01) are different from Physical MAC Address (aabb.cc00.d000).

R2#show interfaces GigabitEthernet 0/0/1

GigabitEthernet0/0/1 is up, line protocol is up

  Hardware is iGbE, address acbb.cc00.d000 (bia acbb.cc00.d000)

  Internet address is 192.168.1.3/24

 

From PC1 then we check ARP cache:

C:\WINDOWS\system32>arp -a

 

Interface: 192.168.1.10 --- 0xb

Internet Address         Physical Address    Type

 

192.168.1.1              00-00-0c-07-ac-01   dynamic

 

We can the ping Virtual IP (VIP) from PC1

C:\WINDOWS\system32>ping 192.168.1.1

 

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=128ms TTL=255

Reply from 192.168.1.1: bytes=32 time=42ms TTL=255

Reply from 192.168.1.1: bytes=32 time=54ms TTL=255

Reply from 192.168.1.1: bytes=32 time=71ms TTL=255

 

Ping statistics for 192.168.1.1:

    Packet: Sents = 4, Received = 4, Losts = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 42, Maximum = 128, Average = 73

Post a Comment

0 Comments