I would like to configure my switch to remove a static route from the routing table if a destination becomes unreachable. In IOS, this would be simple with IP SLAs, however, they are not in the Nexus 5000 series platform, only the 7000 series, which we don't have.
Is there are way I can achieve the same thing with object tracking?
I have configured:
ip route 10.1.1.0/24 10.1.2.1
track 10 ip route 10.1.1.0/24 reachability
However, I'm not sure if I need additional configuration to remove the route from the routing table.
Thanks for your help
Do you want to run this track on default VRF or non-default VRF ?? . You configuration should work for default VRF .
If you want run this under non-default VRF then you need to have additional command
switch(config-track)# vrf member <Name>
I don't think that will work the way you expect it to.
One workaround is described in this related question: https://supportforums.cisco.com/discussion/11719336/ip-sla-nexus-5500-series