cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
289
Views
1
Helpful
4
Replies

Can I override an IP Route by adding a track to it without an outage?

ffong_jha
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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>


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

4 Replies 4

nict
Level 1
Level 1

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.

Thank you for your input.

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>


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thanks!

Review Cisco Networking for a $25 gift card