07-05-2004 11:12 AM - edited 03-02-2019 04:50 PM
I have a 3725 with 2 ISP connections. I have 6 Public IPs from each ISP. The ISPs cannot route each other's IPs. Running a routing protocol with the ISPs is not an option for us.
We use one of the ISPs as a primary link and the other one as a backup / secondary link.
Both the links terminate on a 1721 that sits on the WAN side of the 3725.
We have used SAA with tracked objects and ICMP probes so that the connectivity fails over to the secondary link if the primary link goes down. This has been configured as per article in Packet magazine: http://www.cisco.com/en/US/about/ac123/ac114/ac173/Q2-04/department_techtips.html.
The failover works fine. However, we need to address 2 issues we face:
1. The failover will happen if even 1 ICMP echo fails. We have changed the timeout on the probe but would like to set the number of retries before the tracked object is pronounced down.
2. This is more important that 1. We need the link to failback i.e. when the primary comes back up, we would like the packets to be routed out the primary link and not keep getting routed off the secondary.
Please advise.
Thanks!
07-14-2004 05:00 PM
Can you send your config over. We are trying to do the same here and it is not clear.
Thanks,
Jerry Roy jroy at goremote dot com
949-221-7208
07-19-2004 05:51 AM
Hi there Jerry.
I cannot forward the configuration right off due to security reasons. However, I'll do a little write-up for you with an example (working) and have it out to you.....perhaps the day after.
Paras
07-19-2004 09:51 AM
I have it working over here. send me an e-mail and I will send you a sanitized copy.
jroy at goremote dot com
08-11-2004 02:31 AM
Hi Jerry
Please could you post an edited copy of your working config here?
Cheers
Max...
08-20-2004 12:32 PM
Jerry,
I just made a post further down in this thread with the configuration that will help you this feature.
Paras
08-12-2004 08:44 AM
I read the same article you did. Second quarter 2004. I, too, have a 3725 and like you really like its content. The problem is once you fail over you can never fail back. I get "socket receive error" messages when I do "sh rtr op" and it never goes away. I've tried various versions of IOS with no luck. Just thought you would like some company.
Jim
08-12-2004 03:57 PM
I got that failover and even fail-back figured out.....Tomorrow, I will take some time to write out the configuration for you.
Paras
08-12-2004 04:48 PM
I've got failover and fail back working on a 1760, and have NAT flipping back and forth as well (that was a real challenge, using ESM to host a background Tcl script). But posts like this one make me nervous about long term reliability.
Question: Does anyone know if this mode of lockup is a configuration problem or an IOS bug which varies by release/platform?
Vincent C Jones
08-13-2004 06:00 AM
Dear Paras,
Oh thank you, thank you, thank you. You will save my sanity if it works!!!
Jim
08-20-2004 10:28 AM
OK Jim,
Here we go. My configuration example is below. I've changed certain arguments for security. However I have explained the parameters for your understanding.
!-----this is the track-------
track 123 rtr 1 reachability
delay down 180 up 2
!-----route map to route the ICMP echos------
ip local policy route-map CHECK_STABILITY
!------Static router (which is what I am using)------
ip route 0.0.0.0 0.0.0.0 10.1.1.1 track 123
ip route 0.0.0.0 0.0.0.0 200.1.1.1 254
!------The tracked object-----------
rtr 1
type echo protocol ipIcmpEcho 198.133.219.25 source-ipaddr 10.1.1.2
timeout 10000
threshold 180000
lives-of-history-kept 2
buckets-of-history-kept 10
filter-for-history failures
!------Scheduling the object tracking-------
rtr schedule 1 life forever start-time now
!------route map sends ICMP echos to the favorite IP down the primary line out-----
route-map CHECK_STABILITY permit 10
match ip address 104
set ip next-hop 10.1.1.1
access-list 104 permit icmp any host 198.133.219.25 echo
Explanation:
The tacked object defines what needs to be checked. In our case, we are sending ICMP echos down our primary line to a "favorite IP", in our case the cisco.com web sever (198.133.219.25). This means that as long as a reply is received, the object is in a "UP" state and the line is good. If a reply is not received, then the object goes down, triggering the track to declare the primary line as down. This will in turn trigger the router to inject the secondary floating route into the routing table.
However, because in the real world, there are several occassion when an ICMP echo may time out. We do not want the router to failover if just one odd ping, once in a while times out. The track therefore tells the router that the delay time allowed before declaring a line down is 180 seconds (my configuration). However, I have told the router that if the primary link comes back up, the fail-back should happen in 2 seconds.
The first static route has the track associated with it. That is the primary default route. The second static route has a high metric. This is the secondary floating route that points down my backup link (2nd ISP).
If you look at the routing table when the primary link is up, you will see the next hop on the default route as 10.1.1.1.
When a failover happens, if you look at the routing table, you will see that the default route is pointing down the secondary link (200.1.1.1).
The 10.1.1.3 IP that you see in the rtr configuration is the interface of my router that connects to the primary line out.
I hope this configuration assists you. I have 2 VPN tunnels doing a failover and fail-back over it like a charm. I've tested it several times.
Now, there are bugs (VRF-related) associated with certain IOS versions, but they do not pertain to this feature. However, you may need to upgrade your IOS to a later version to be able to configure this feature. I had to upgrade my router 3 times before I could run without issues. I am running 12.3(9.8)T and this was posted specially by TAC as it is not available for download. DO NOT GO FOR 12.3(9)T!!!
Have a nice day!
Paras
08-20-2004 02:48 PM
Dear Paras,
Thanks so much!!
Jim
08-13-2004 06:31 AM
Jim,
I will be rather tied up. So, I just dropped in to let your know that for the fail-back to work, you need to define a source IP as such:
rtr 1
type echo protocol ipIcmpEcho
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