cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
532
Views
0
Helpful
1
Replies

Cisco ASA Insert static route on track object failure

rick505d3
Level 1
Level 1

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 1

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 select a correct answer and rate helpful posts
Review Cisco Networking for a $25 gift card