Based on administrative distance, routers believe static routes over any dynamically learned route. A directly connected interface is the only default administrive distance lower than that of a static route. There may be times when default behavior is not the desired behavior.
When you configure a static route as a backup to a dynamically learned route, the static route should not be used as long as the dynamic route is available. First, consider that the syntax for configuring a static route is ip route prefix mask address/interface [distance].
The optional administrative distance value in this command can be manipulated to make the state route appear less desirable. Administrative distance can also be manipulated to make one static route appear less desirable than another static route. A static route that appears in the routing table only when the primary route goes away is called a floating static route.