Cisco Support Community
Community Member

static route selection

We have two provider for a same branch, what is the best way to configure a automatically route selection if primary link go off?

i am using only static routing.



Re: static route selection

You may use floating static routes i.e. routes with diff AD. e.g.

ip route x.x.x.x y.y.y.y next-hop (primary route)

ip route x.x.x.x y.y.y.y next-hop 10(secondary route)

where 10 in second statement i the AD. So, as long as next-hop in the 1st route statemnt is reachable, it will be used. Once the next-hop cant be reached than second route will be used due to higher AD.

Community Member

Re: static route selection

what can i do if i have two routers for different providers?

Re: static route selection

HI, [Pls Rate if HELPS]

Unless & Until the route exits in the Global Roting table the secondary route will be preferred once the Primary is OFF.

There are no additional configuration required, the secondary static route with Higher AD will do your requirement.

In addition, refer link below and perform a task to create an IP SLA to ping the target address. This will help you to track the status of the Primary Connection to the remote gateway.

Refer Link below for Reliable static Routing Backup with Object Tracking:

Hope I am Informative.

Pls Rate if HELPS

Best Regards,

Guru Prasad R

Re: static route selection

guru bhai. welcome back.

Community Member

Re: static route selection

Another simpler well known option would be to use HSRP with object tracking provide the WAN link is not Ethernet link.


Hall of Fame Super Silver

Re: static route selection


if the two providers connect to two different routers in your network you need to redistribute the branch site IP prefixes in your IGP taking care to make the primary path the preferred one for all internal routers. You may accept that the router connected to the backup link locally use the backup path (or you can use on it a floating static route with AD > [your IGP external routes AD]).

When the primary link fails all routers will install the routes injected by the router connected to the backup link in the IGP protocol.

Hope to help


CreatePlease to create content