cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1124
Views
4
Helpful
9
Replies

HSRP tracking is not working.

fariha zain
Level 1
Level 1

Hi Experts,
I am trying to failover the HSRP by making the interface down on Switch A , But the Switch B doesnt take the HSRP active role.

Action I am doing:
SwitchA-London# config t
SwitchA-London(config)#int g1/2
SwitchA-London(config-if)#shut

HSRP doenst take over for this Vlan 20 on SWitch B london. ( If I check HSRP state it is still showing Switch london A itself as Active with P).
SwitchA-London#
Interface  Grp  Prio P    State    Active          Standby         Virtual IP
Vl20        20    100  P    Active   local          172.16.20.2   172.16.20.1

SwitchB-London#
Interface  Grp  Prio  P    State         Active          Standby         Virtual IP
Vl20         12  140           Standby  172.16.20.2    local           172.16.20.1 >>>>>> This should have taken the Active State.


My config:

SwitchA-London#sh run int vlan 20

interface Vlan20
ip address 172.16.20.2 255.255.255.240
standby preempt
standby 20 ip 172.16.20.1
standby 20 priority 150
standby 20 preempt delay minimum 50
standby 20 track 100 decrement 20

ip route 65.219.130.0 255.255.255.0 172.16.30.17

track 100 ip route 65.219.130.0 255.255.255.0 reachability
track 100 interface GigabitEthernet1/2 ip routing

SwitchA-London#sh run int vlan 1/2
interface GigabitEthernet1/2
description london A
no switchport
ip address 172.16.30.18 255.255.255.252
end

SwitchB-London#sh run int vlan 20

interface Vlan20
ip address 172.16.20.3 255.255.255.240
standby preempt
standby 20 ip 172.16.20.1

standby 20 priority 140
standby 20 preempt delay minimum 50

ip route 65.219.130.0 255.255.255.0 172.16.30.19

SwitchB-London#sh run int GigabitEthernet1/2
interface GigabitEthernet1/2
description london B
no switchport
ip address 172.16.30.20 255.255.255.252

Anyhelp would be appriciated.

Thanks & Regards

Fari

9 Replies 9

Richard Burts
Hall of Fame
Hall of Fame

Fari

I see that on switch B you have configured this

standby preempt

but I believe that this will be treated as being in standby 0 group and not standby 20 group. I suggest that you add this to your config

conf t

interface vlan 20

standby 20 preempt

end

give this a try and let us know if it solves your problem with failover.

HTH

Rick

HTH

Rick

Hi Richard,

Thanks for the update, Is there any thing else to be checked or configured other than what you mentioned?

Regards

Fari

get_rthym
Level 1
Level 1

Hi there,

I noticed your VIP for London B is .2, It should be .1

Lek

Sent from Cisco Technical Support iPhone App

Lek,

Its 1, sorry it was typo mistake at begining. Any othr thoughts?

Is my config alright? Are there any mistake on the track commands?

Regards

Fari

Fari

The more that I read your original post the more confused that I get. What appears to be the output of show standby on both switches does not match up with what you have posted from the configurations of the switches. Please give us a fresh, up to date and accurate output of show standby from both switches and the relevant configuration of the switches.

I also have some doubts about the way that track is set up and used with HSRP so please give us the complete and accurate details of that also.

HTH

Rick

HTH

Rick

Hi Richard,

Let me put it in simple. I am trying to track the interface.

With this example if I shut down int g1/2 (Layer 3)on Switch A all traffic for that network should take Switch B.

Latest Output:

HSRP doenst take over for this Vlan 20 on SWitch B london. ( If I check HSRP state it is still showing Switch london A itself as Active with P).

SwitchA-London#
Interface Grp Prio P State     Active    Standby       Virtual IP
Vl20 20  150 P        Active     local     172.16.20.2 172.16.20.1

SwitchB-London#
Interface Grp Prio P State Active Standby Virtual IP
Vl20 20 140 Standby 172.16.20.2 local 172.16.20.1 >>>>>> This should have taken the Active State when I shut down the interface G1/2 but it doesnt.

The result is same wheather the int G1/2 is shutdown or up on Switch A.

Querie:

=======

What other thing do I need to configuring on Gig1/2 of Switch A so that when it goes down the SwitchB takes over all the traffic.

Regards

Fari

get_rthym
Level 1
Level 1

Your configs and sh command outputs is different. Also what do u want to track?
U r tracking both route and interface.

Please post concerned output n configs.

Lek

Sent from Cisco Technical Support iPhone App

Another note to add:

I have all my HSRP configuration on the Vlan interface. Do I need to configure on the Layer 3 interface as well? (i.e G1/2 in my case?

Fari

We do not have much understanding of your network topology and that makes it hard to give good answers to some questions like this. But if Gi1/2 is configured with no switchport and with an IP address then it suggests that this is a point to point link to some other device. And there is no advantage to try to run HSRP on a point to point link to some other device.

I believe that part of the issue is with the way that you set up track. Here is what was in the original post

track 100 ip route 65.219.130.0 255.255.255.0 reachability
track 100 interface GigabitEthernet1/2 ip routing

is that still the way that it is configured?

I wonder about the effect of tracking two things within a single instance of track. I would suggest that you create a tracking instance for the route and a separate tracking instance to track the interface, if tracking the interface is what you want to do.

HTH

Rick

HTH

Rick
Review Cisco Networking products for a $25 gift card