Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Change route if next hop is not available

Here is the scenario:

Cisco Router is behind a Cable modem. This same cisco router has another ethernet connection to another Cisco router. I want the default route to go out the cable modem. But in the event the connection on the far side of the cable is down I want the default route to over to the other cisco router.

I know that a floating static will not work because the interface between the Cisco router and the cable modem hasn't gone down. I know that policy routing to verify the next hop will not work because it isn't another Cisco device on the other of the cable modem.

Is there a way I can constantly ping another device on the back side of the cable modem to verify that it is available, if it isn't to some how change the default route in the routing table. (i.e. TCL scripting of other method). I really appreciate everyone's help.

Hall of Fame Super Blue

Re: Change route if next hop is not available

You could consider using reliable static routing with object tracking which tracks the reachability of an IP address and if it becomes unreachable can remove a route and use a different one. See this link for more details -

You could also consider looking into EEM which involves TCL scripting. If you want to pursue this i suggest you post this question into Network Infrastructure -> Network Management where there is a Cisco expert with a lot of EEM knowledge.


Super Bronze

Re: Change route if next hop is not available

Newer IOSs support using SLAs as an enhanced tracking method.


Sorry Jon, didn't see your post until after I posted mine. Good you posted reference to object tracking. BTW: there's another post asking similar question. If you see, would be good to also provide your reference again.


Jon, never mind hunting other posts, I just amended my posts pointing to your post here.

CreatePlease to create content