Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Step-by-Step Configuration and Troubleshooting Best Practices for the NGFW, NGIPS and AMP Technologies A Visual Guide to the Cisco Firepower Threat Defense (FTD)
Community Member

Cisco ASA Insert static route on track object failure

Hi,

Is there a way to insert a static route when tracking object results in a failure.

ip route 1.1.1.1 255.255.255.255 2.2.2.2 track 100

track 100 rtr 100 reachability

sla monitor 100

type echo protocol ipIcmpEcho 3.3.3.3 interface Outside

frequency 5

sla monitor schedule 100 life forever start-time now

The above inserts the static route when 3.3.3.3 is reachable. I want to negate that so that the route is inserted when 3.3.3.3 is not reachable. Something similar to "track 100 list boolean" command available under IOS. With EEM scripting not supported on ASA, I am not sure how else can I do this ?

Thanks,

Rick.

1 REPLY

Cisco ASA Insert static route on track object failure

you could add a second route with a higher metric so when the ping fails for track 100 and the route is removed from the routing table, the second route takes over.

sla monitor 100

type echo protocol ipIcmpEcho 3.3.3.3 interface Outside

frequency 5

sla monitor schedule 100 life forever start-time now

track 100 rtr 100 reachability

ip route 1.1.1.1 255.255.255.255 2.2.2.2 track 100

ip route 1.1.1.1 255.255.255.255 4.4.4.4 254

--
Please remember to rate and select a correct answer
235
Views
0
Helpful
1
Replies
CreatePlease to create content