03-11-2024 02:07 PM
I am looking to update multiple Ip routes that we track in HSRP, but the track statement was missing. If I add the track without removing the already configured route, will it update? Or Do we need to remove the route then re-add it with the track statement?
Solved! Go to Solution.
03-11-2024 02:41 PM
Hello
No it should add an additional static route with the track, resulting in two same statics( 1 with track & 1 without track)
Suggest the best way to do this would be to have a script ready to copy & paste so to delete the non track static first and quickly add the new tracked static
example
no ip route x.x.x.x y.y.y.y (<interface x> <next-hop>
ip route x.x.x.x y.y.y.y (<interface x> <next-hop> track x
Alternatively add the new static (with track) first and then remove the non tracked static, however this could result in deleting both (depending on the running IOS)
ip route x.x.x.x y.y.y.y (<interface x> <next-hop> track x
no ip route x.x.x.x y.y.y.y (<interface x> <next-hop>
03-11-2024 02:37 PM
Hi @ffong_jha
So you have configured IP SLA, created a track combined with the IP SLA but forgot to add the track to your static ip route, correct?
If you add the track to your route statement, it should update the route. Just remember, that the track will result in a true or false state depending on the result from the IP SLA.
So if your track is "False" it will remove the route from the routing table.
Hope this helps.
03-11-2024 02:53 PM
Thank you for your input.
03-11-2024 02:41 PM
Hello
No it should add an additional static route with the track, resulting in two same statics( 1 with track & 1 without track)
Suggest the best way to do this would be to have a script ready to copy & paste so to delete the non track static first and quickly add the new tracked static
example
no ip route x.x.x.x y.y.y.y (<interface x> <next-hop>
ip route x.x.x.x y.y.y.y (<interface x> <next-hop> track x
Alternatively add the new static (with track) first and then remove the non tracked static, however this could result in deleting both (depending on the running IOS)
ip route x.x.x.x y.y.y.y (<interface x> <next-hop> track x
no ip route x.x.x.x y.y.y.y (<interface x> <next-hop>
03-11-2024 02:54 PM
Thanks!
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