I understand route outside (static route) configuration is used to tell the ASA to communicate to the outside world or to traverse internet traffic, but I am confused with this command:

route outside [1] 

route if_name dest_ip mask gateway_ip - what does the [1] in the end corresponds to?


route outside track [number]

What does track means?


1 Answer 1


In the first example, the 1 sets the administrative distance of the route. By default, the administrative distance of a static route is 1, so normally you wouldn't need to set it.

The track feature allows the route to be conditionally installed in the forwarding table based on the status of the tracked object -- usually an IP SLA monitor or an interface status. If the IP SLA monitor is valid, for example, if an external IP is pingable, the route gets installed in the forwarding table. If it isn't, the route is not installed.

These features can be combined to provide backup routing on the ASA. Imagine you have two interfaces: outside and backup. You want the default route to use the outside interface as long as the next hop is reachable. If it isn't, traffic should use the backup interface. You can configure something like this:

route outside track 1

route backup 254

sla monitor 1
 type echo protocol ipIcmpEcho interface outside
 num-packets 3
 frequency 10
sla monitor schedule 1 life forever start-time now

The monitor pings the next hop address every 10 seconds. As long as it gets a response, the first route is installed in the forwarding table. If the monitor fails, the route is removed.

Note that the second route has an administrative distance of 254. when the first route is valid, it will be installed in the routing table because it has a lower administrative distance compared to the second route. When the route is removed, the second route gets installed. This has the effect of routing traffic to if that address is reachable. Otherwise traffic uses the backup route to

Cisco has a similar example here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.