Ganesh Hariharan Sun, 12/27/2009 - 22:45
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

Hi Ali,


yes you can configure HSRP with different switches as HSRP is conifugred in per vlan basis, so if both the switches are having connectivity in same vlan they can run HSRP.


Check out the below link for HSRP configuration hope this helps out your query !!


http://www.ciscoblog.com/docstore/haiphsrp.pdf


Regards

Ganesh.H

abbas.ali Sun, 12/27/2009 - 23:42
User Badges:

Ganesh,


But can I do the following:


Configuring Vlan 10 for example in (3) Switches.


Switch 1:


Interface vlan 10

ip address 172.16.2.1 255.255.255.0

standby ip 172.16.2.1

standby priority 110


Switch 2:


Interface vlan 10

ip address 172.16.2.2 255.255.255.0

standby ip 172.16.2.1

standby priority 100


Switch 3:


Interface vlan 10

ip address 172.16.2.3 255.255.255.0

standby ip 172.16.2.1

standby priority 90



So, if switch 1 and 2 fail at the same time, the host can still send traffic via Switch 3.

Ganesh Hariharan Sun, 12/27/2009 - 23:58
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

If both switches are gone from the network then third one will assume to be active and will act as gateways for the Lan users.


Rather another set of configurtaion even without priroty you can achive that check the below config hope that helps out your query !!


R1#sh run interface fastethernet 0/0
Building configuration...


Current configuration : 123 bytes
!
interface FastEthernet0/0
ip address 192.168.0.11 255.255.255.0
standby 1 ip 192.168.0.1
end


R2#sh run interface fastethernet 0/0
Building configuration...


Current configuration : 123 bytes
!
interface FastEthernet0/0
ip address 192.168.0.12 255.255.255.0
standby 1 ip 192.168.0.1
end


R3#sh run interface fastethernet 0/0
Building configuration...


Current configuration : 123 bytes
!
interface FastEthernet0/0
ip address 192.168.0.13 255.255.255.0
standby 1 ip 192.168.0.1
end


The standby ip interface configuration command enables HSRP and establishes 192.168.0.1 as the IP address of the virtual router. The configurations of routers include this command so that the 3 routers share the same virtual IP address.


If the priority of the routers are the same, the active router (the router that forward the packets) will be the router with the highest ip address and the stanby router will be the router with the second highest IP address.


Regards

Ganesh.H

Giuseppe Larosa Mon, 12/28/2009 - 02:33
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Abbas,

this can be done.

L2 connectivity for the vlan in question is required


To be noted the third HSRP device will stay in listen state and only the Active and the standby will send out regular HSRP hellos.

If one between active or standby fails, the third device moves from listen to speak state and then to standby state.


In this way HSRP allows to use multiple routers per group without having all devices sending out HSRP hellos all the time.

HSRP hellos are sent to 224.0.0.2 all routers in subnet.


You may want to add some form of tracking, this may require a review of priorities assigned to each device.


Hope to help

Giuseppe

Marwan ALshawi Mon, 12/28/2009 - 04:14
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

to add the nice comment from Giuseppe


you may need to consider preemption in your implementations to make sure that if the active HSRP device fail and then comes back again it takes the role as the active device in the group again

this can bee done by using the command preempt


thank you

if helpful Rate

luis.hidalgo.pms Thu, 01/24/2013 - 11:12
User Badges:

Dear


In a HSRP scenario with 02 nodes, the switches exchange hellos packets to validate that they (switch) are active.


In a HSRP scenario with 03 nodes, is necessary to apply a tracking configuration? and is necessary to implement HSRP version 2?


I appreciate your response


Best Regards

Luis Hidalgo

Actions

This Discussion