Cisco ASA Insert static route on track object failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2013 05:27 PM - edited 03-11-2019 07:33 PM
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.
- Labels:
-
NGFW Firewalls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2013 12:38 PM
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
