06-15-2009 12:25 PM - edited 03-06-2019 06:16 AM
Hi There, I am facing issue while tracking HSRP stats with IP SLA. I have two routers facing ISP. One router running BGP with ISP1 & another router running EIGRP with ISP2. routers are configured with multiple vlans with HSRP configuration on it. Basically router on a stick. Active HSRP router is BGP router. Standby is Eigrp Router. I want to track if my ISP1 goes down or somehow I lost the bgp peering or bgp routing is empty then HSRP state should fallback to standby & eigrp router should take role of Atcive HSRP router. Is it possible with IP SLA, if yes how ?
06-15-2009 01:12 PM
Yes, it's possible. Please refer to the documentation:
http://www.cisco.com/en/US/docs/ios/12_4/ip_sla/configuration/guide/hsla_c.html
You can track the existence of a route on the routing table or ping the neighbor ISP router for reachability.
You can associate this track to the standby command and decrement the priority to a lesser value so the non-Active device take over.
HTH,
__
Edison.
06-15-2009 01:28 PM
Hi thanks for your reply. I tried reachability by pinging the ISP router IP with IP sla. but its checking the reachablitity thats fine but as soon as IP sla finds that ISP is reachable its is decrementing the HSRP priority vlaue & making BGP router as standby router but I want other way round, if ISP1 is not reachable then HSRP state should be change.
here is my configuration.
interface gi0/0.1
standby 1 track 1 decrement 10
description Management VLAN
encapsulation dot1Q 1
ip address 10.110.254.252 255.255.255.0
standby 1 ip 10.110.254.1
standby 1 preempt
standby 1 priority 105
standby 1 name mgmt
track 1 ip sla 1 reachability
ip sla 1
icmp-echo 10.110.241.2 source-interface GigabitEthernet0/1
frequency 180
06-15-2009 01:33 PM
The priority should only decrement when the track is down. Verify the track status with the show track command.
06-15-2009 01:59 PM
I checked that it was down n decremented the value as expected but it decrements only when ISP1 IP is reachable. when ISP1 IP is unreachable it does not decrement the vlaue. what I want is when ISP1 is unreachable then Track should decrement the HSRP priority vlaue. How can i do that ? I can not see unreachability option in track command
06-15-2009 03:10 PM
We are not understanding each other.
The track is down when it should be up. When it's down, it decrements the HSRP priority. It's working as designed. You need to verify why the track is down when it should be up as the destination is reachable.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: