11-29-2017 06:42 AM - edited 03-08-2019 12:55 PM
Hello all.
I have remote locations and redundant links from said locations back to my campus via my single ASA. That single ASA has 2 virtual interfaces, 192.168.50.1 and 172.16.50.1.
A remote location has a router which is dual homed with connections to on-premise equipment from two different ISPs. The router has IP addresses 192.168.50.100 (g0/0), and 172.16.50.100 (g0/1). My question is this, how best do I automate the failover between the two links on my router at remote location?
I have been looking at using Embedded Event Manager to look at the router's logs and then enabling/disabling the OSPF network command for the backup link, thereby effectively doing the following:
When the primary link (192.168.50.100) goes down, OSPF network 172.16.50.0... command is run to add the link to the OSPF database so it will be seen as router address for that location.
When the primary link comes back up, the above OSPF command will be reversed thereby removing the link from OSPF database and the router address goes back to being that of the primary link.
Alternative to the OSPF commands is to disable the primary interface when the primary link goes down. I would also enable the backup interface. I have a floating static route pointing to the secondary default gw (172.16.50.1).
Solved! Go to Solution.
11-29-2017 10:59 AM
11-29-2017 10:59 AM
11-29-2017 11:55 AM
Thank you for your reply.
Yes, you've almost got it. The ASA is at my HO and the remote location only has a 1941 router. (Internet access is via my HO as well.) Everything else you've said is correct.
I like your alternative to EEM, I'll put both to the test.
Another question, if I were to use the OSPF only option how would the failover from primary to seondary, AND then secondary to primary work?
For instance, I understand I could manipulate the interface BW value on each of the interfaces at my remote location so that OSPF via primary i/f would always have a lower cost than OSPF via the secondary i/f.
So, let's say my primary goes down and then the OSPF entry for secondary link moves from OSPF database to routing table. How long does it take for the routing table to get this update from the database?
Also, what happens when the primary link comes back up? Will it automatically take over in the routing table? I won't be able to test until tomorrow so I'm just wondering.
11-29-2017 12:17 PM
11-29-2017 11:26 AM - edited 11-29-2017 11:28 AM
Hello
I dont think you even require EEM to accommodate this if you do require a link state feature for default static routing from a single ASA to dual ISP's, As ip sla should be good enough.
Example:
int f0/0
nameif outside
security-level 0
ip address 192.168.50.1 255.255.255.0
int f0/1
nameif redundant
security-level 0
ip address 172.16.50.1 255.255.255.0
route outside 0.0.0.0 0.0.0.0 192.168.50.100 1 track 5
route redundant 0.0.0.0 0.0.0.0 172.16.50.100 254
sla monitor 10
type echo protocol ipIcmpEcho 8.8.8.4 interface outside
sla monitor schedule 10 life forever start-time now
track 5 rtr 10 reachability
res
Paul
11-29-2017 12:14 PM
My apologies. I should have perhaps labeled this question more clearly. I'm using a router at the remote location which is connected to two ISPs, and each of those ISPs link back to virtual interfaces at my head office.
I am intrigued by the use of IP SLA. I've never used it myself before.
11-29-2017 12:23 PM
https://www.cisco.com/c/en/us/support/docs/ip/ip-routing/200785-ISP-Failover-with-default-routes-using-I.html
This link seems to give me all I need for IP SLA tracking. I'd combine this with the OSPF alternative suggested by Francesco and I'd be good to go.
11-29-2017 01:16 PM
Thank you for this suggestion, however it seems 1941 routers we have don't have the data licence installed we can't use IP SLA. That's something I'll have to discuss with accounts.
11-29-2017 12:13 PM
Hello,
on a side note, since you have (and pay for) two ISP connections at the remote sites, why not use OSPF load balancing ? Just a thought...
11-29-2017 12:25 PM
Load balancing meaning equidistant OSPF metrics for each link? If so, that'd be a consideration once we get the automatic failovers working.
11-29-2017 12:28 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide