Solved

Setup routing failover on Cisco Router

Posted on 2013-01-15
4
1,143 Views
Last Modified: 2013-01-16
I have a Cisco 3945 router (running 15.0(1r)M13).

I have 2 separate connections coming into this router.  Both links connect to my 2nd office location.

I have a preferred path for traffic to use (link A) and a secondary link (link B) that I can use if the Link A ever were to go down.

All I need to do it go into my router and change the static route for the network in question, from using Link A to Link B, and that's all I need to do to failover.

My question is - is there an easy way to set this up to do this failover automatically?  Can I put in multiple static routes and assign a cost?  Is there anyway to *easily* do this without complicating my other hardware pieces?

Essentially all I need is for the router to somehow know primary path is down, and to use the secondary path.

Of course that means there has to be some logic for switching back too, once the link is back up, I haven't really thought about that yet.

Any suggestions would be helpful, but I'd like a simple solution, not something that complicates my environment much more.
0
Comment
Question by:Vjz1
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Leeeee earned 500 total points
ID: 38779388
Yes, IP SLA and floating statics come to mind.

Floating statics can be configured to assign a secondary default route with a higher AD. For example:

ip route 0.0.0.0 0.0.0.0 1.1.1.1 (Primary)
ip route 0.0.0.0 0.0.0.0 2.2.2.1 10 (secondary)

The 10 you see at the end changes the default AD from 1, which is used for static routes, to 10 so the primary default route is preferred. When that primary route goes away, the secondary will become active. When the primary comes up, it will be re-instated into the routing table.

What I'd recommend configuring is IP SLA (cant have IPBASE). IP SLA assigns a track to a default route to check it's availability at specific intervals. So, we could be pinging a public DNS server out on the internet or your ISP's gateway using your primary link. If a specified threshold isn't met or trouble is detected over that link, the IP SLA will remove the primary static route and the secondary will become active automatically. This is beneficial over using floating statics as sometimes links remain up/up, but no traffic is flowing over the link.

Here's a good guide IP SLA:
http://www.cisco.com/en/US/docs/ios/12_4/ip_sla/configuration/guide/hsla_c.html
0
 
LVL 10

Expert Comment

by:mat1458
ID: 38782348
Why not just use a routing protocol such as OSPF or EIGRP and turn cost/delay up on the backup link? routing protocols are made for finding alternate paths. The example above relies on the fact that the interface with the primary route goes down. Only then the route disapears. With routing protocols you have processes on both routers that need to communicate with eachother. Once the communication over one path is blocked all traffic is rerouted over the other one.
0
 

Author Comment

by:Vjz1
ID: 38782590
Sounds like an interesting option.  I just don't know anything about OSPF or EIGRP.  I guess I need to start reading up on them.
0
 
LVL 10

Expert Comment

by:mat1458
ID: 38782863
Sure, and your example is a very easy one.

Another option in your situation would be to use some multilink technology such as EtherChannel/LAG or PPP Multilink depending on the media and the router capabilities.  With this you could use both links while they are available and have still one active in case of the failure of the other one.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now