ā08-09-2024 07:15 AM
Hello,
I don't have a way to lab up my question unfortunately and was hoping to get some feedback if this is correct. Currently, I have the IP SLA 1 in production and that's working with my HSRP and if the track object fails to respond to pings, then then my priority decrements by 20 causing my standby router to become active. This worked as designed when I tested it. I'm looking to solve for another failover scenario and need to track another object. Would it be best to create a track 3 boolean using the "and" statement as I do want HSRP to decrement by 20 in either case or can I simply add the following line under my gig 0/0/2 interface "standby 1 track 2 decrement 20" ?
Thanks
ip sla 1
icmp-echo 192.168.73.2 source-interface GigabitEthernet0/0/0
frequency 10
ip sla schedule 1 life forever start-time now
i
p sla 2
icmp-echo 10.172.21.2 source-interface GigabitEthernet0/0/0
frequency 10
ip sla schedule 2 life forever start-time now
interface GigabitEthernet0/0/2
ip address 192.168.73.9 255.255.255.248
standby 1 ip 192.168.73.11
standby 1 priority 200
standby 1 preempt
standby 1 track 1 decrement 20
load-interval 30
media-type sfp
negotiation auto
track 1 ip sla 1 reachability
!
track 2 ip sla 2 reachability
!
track 3 list boolean and
object 1
object 2
ā08-09-2024 07:40 AM
Boolean AND Down when ANY of child track is down
Boolean OR Down when BOTH of child track down
ā08-09-2024 07:49 AM
this HSRP with one track boolean OR
the hsrp decrement only if both child track down
ā08-09-2024 08:43 AM - edited ā08-09-2024 08:44 AM
Hello,
Either way is fine. If you are creating rules to affect the same HSRP process then I would just keep them together with a boolean. However, it would need to be an OR of you want EITHER case to affect the HSRP process. AND means BOTH have to be down before it decrements.
With this design it looks like you cna do this:
interface GigabitEthernet0/0/2
ip address 192.168.73.9 255.255.255.248
standby 1 ip 192.168.73.11
standby 1 priority 200
standby 1 preempt
standby 1 track 3 decrement 20
load-interval 30
media-type sfp
negotiation auto
track 1 ip sla 1 reachability
!
track 2 ip sla 2 reachability
!
track 3 list boolean and
object 1
object 2
-David
ā08-09-2024 01:26 PM
Thanks for the feedback as MHM and you say the opposite. I will test in next week's maintenance window and report back.
ā08-09-2024 01:47 PM
Sorry what is opposite? Can you more elaborate
Thanks
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide