cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
194
Views
1
Helpful
5
Replies

IP SLA with Boolean & HSRP

dcanady55
Level 3
Level 3

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

5 Replies 5

 Boolean AND Down when ANY of child track is down 
 Boolean OR Down when BOTH of child track down

this HSRP with one track boolean OR 
the hsrp decrement only if both child track down 

 

Screenshot (827).pngScreenshot (828).pngScreenshot (829).pngScreenshot (830).png

Screenshot (831).pngScreenshot (832).png

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

dcanady55
Level 3
Level 3

Thanks for the feedback as MHM and you say the opposite. I will test in next week's maintenance window and report back. 

Sorry what is opposite? Can you more elaborate 

Thanks 

MHM