07-24-2013 09:37 AM - edited 03-07-2019 02:34 PM
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1 track 1
Just a quick question, if I modified a config to include the IP SLA track and left the original default route, would the SLA be effective, or not? (See above)
Solved! Go to Solution.
07-24-2013 11:14 AM
If you entered the commands:
conf t
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1
!
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1 track 1
You would just overwrite the the original static route with the same route using the ip sla tracking. As long as the tracking is true, the static route is used.
07-24-2013 01:51 PM
Sorry I stand corrected, I though it would overwrite the static route. I tried it out in my lab to see. At any rate, if I understand what you are asking, then they way you can determine if the Tracked object is active is by using the following command:
show track 1
which the output would tell you you if it is active:
R1#show track 1
Track 1
Response Time Reporter 1 reachability
Reachability is Up
2 changes, last change 00:04:35
Latest operation return code: OK
Latest RTT (millisecs) 47
Tracked by:
STATIC-IP-ROUTING 0
However, usually you wouldn't use the same default route in this manner. Rather you would use 2 default routes. 1 being a backup that would become active if the tracked route wasn't reachable. You would give the untracked route a higher administrative distance so that it isn't used unless the tracked becomes unavailable.
On another note, if you are just tracking the next hop you can just make a floating route and not use tracking.
07-24-2013 09:51 AM
I'm thinking it wouldn't be because it would still be injecting a default route with an AD of 1
07-24-2013 11:14 AM
If you entered the commands:
conf t
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1
!
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1 track 1
You would just overwrite the the original static route with the same route using the ip sla tracking. As long as the tracking is true, the static route is used.
07-24-2013 01:13 PM
Right now in my running config I have both
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1 track 1
Show route obviously shows a current default to 75.1.1.1, what I want to know is that since there are two entries shown in the running config, if the tracked route went down, because there is the other entry, would SLA failover to the other route.
I can try this when I am on a test network but right now this is live.
07-24-2013 01:51 PM
Sorry I stand corrected, I though it would overwrite the static route. I tried it out in my lab to see. At any rate, if I understand what you are asking, then they way you can determine if the Tracked object is active is by using the following command:
show track 1
which the output would tell you you if it is active:
R1#show track 1
Track 1
Response Time Reporter 1 reachability
Reachability is Up
2 changes, last change 00:04:35
Latest operation return code: OK
Latest RTT (millisecs) 47
Tracked by:
STATIC-IP-ROUTING 0
However, usually you wouldn't use the same default route in this manner. Rather you would use 2 default routes. 1 being a backup that would become active if the tracked route wasn't reachable. You would give the untracked route a higher administrative distance so that it isn't used unless the tracked becomes unavailable.
On another note, if you are just tracking the next hop you can just make a floating route and not use tracking.
07-24-2013 02:04 PM
I have another default route set up with a metric of 240 with all the rest of the SLA set up.
Sorry I think I'm answering my own question. If I had :
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1
route outside 0.0.0.0 0.0.0.0 75.1.1.1 1 track 1
route outside 0.0.0.0 0.0.0.0 80.5.5.5 240
The tracked route may be removed but because there is still a route with an ad of 1, lower than 240, albeit identical to the tracked one, it would still prefer that route.
Sorry I didn't give all pertinent information.
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