
Tracking default route with HSRP
I have been pulling my hair out trying to figure how I can successfully track a default route when trying to tie that feature to HSRP.
When doing a show ip route, I can see the default route is in the routing table but when I set up the following configuration on my 3560 switches, the HSRP and Track feature report the default route is not reachable. What am I doing wrong and is there a better way to be doing this?
track 1 ip route 0.0.0.0 0.0.0.0 reachability
!
interface vlan 10
standby 1 ip 10.1.1.1
standby 1 preempt
standby 1 track 1
standby 1 priority 105
standby 1 decrement 10
when showing hsrp "show standby", the tracked object "track 1" shows failed or not reachable. Any thoughts how I can successfully track the default route in my routing table? I know this scenaro works if I try other subnets or even an interface. Just no luck with the default-route.
Comments
If you want to use the reachability, you would track the next hop ip. So you would use
#ip route 0.0.0.0 0.0.0.0 [next-hop-ip] track 1
#track 1 ip route [next-hop-ip] reachability
I assume that the default route is being learnt via a dynamic routing protocol?
I have done a similar configuration traffic the default route with HSRP on a router with no problems - so maybe try moving to a different device. The other way to do this in the real world would be to use an IP SLA and apply this to a track. Then apply the track to a dummy static route, and finally track it's reachability via a different tracked object.
You are correct, the default route is being learned dynamically via OSPF. I just tried the same scenario on a topology with several 3800 routers and I still can't seem to get the track to work right with HSRP when tracking the default route.
To confirm, I just have track 1 track 1 ip route 0.0.0.0 0.0.0.0 reachability command but I do not have anthing additional (such as an SLA).
Should I also configure an IP SLA to make this work? If so, what would such example look like if I needed to track the default route being learned via OSPF?
hi ,
i just tried this on my rack and it works fine ..
R3 - R2 - SW2 ...
R3 has the follwoing config
!
router ospf 1
log-adjacency-changes
default-information originate always
No you shouldn't anything else this command simply look at the routing table for the relevant route. If it exists the track will be up other it will be down. I have used your particular scenario in production. In one case tracking the default route installed by when a PPPoA session is up, on the other tracking a core prefix which was installed in the routing table via BGP. In fairness both of these cases are in version 15 code running on 887 and 2900 routers.
One thing you could try is seeing if it works for a different route. You could also try debug track to see if this shows anything?
The option would be to see what happens if you install a static default route and then remove it?
Thank you for confirming that you were able to get it to work. Perhaps I will try a different set up over the weekend to see if I can get successful results.
hi ciscoquad
I faced the exact same issue on a Catalyst 3560 running IOS 12.2(44)SE6
Tracking routes is always down.
I did not search for Cisco bugID but I consider this is an IOS issue as the exact same configuration is working well on 3560 with 12.2(46) IOS
If you use the same IOS version, you should consider an upgrade
Exactly the same here...
I have tried in:
Cisco IOS Software, C3750 Software (C3750-ADVIPSERVICESK9-M), Version 12.2(44)SE2, RELEASE SOFTWARE (fc2)
Cisco IOS Software, C3550 Software (C3550-IPSERVICESK9-M), Version 12.2(44)SE2, RELEASE SOFTWARE (fc2)
Maybe something related to the catalyst plattform?
Regards.
I just try on router (GNS3) and everything is fine.
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
track 1 ip route 0.0.0.0 0.0.0.0 reachability
standby 1 track 1 decrement 100
I tried on routers and work fine, even in 3560. It seems there's an issue related to am IOS version in particular.
Best regards for my paisano. I am also from Sevilla, but living gin Madrid currently.
I think this is because of switch. I know how to track a phone number by this.