03-22-2018 02:03 AM - edited 03-05-2019 10:08 AM
Hello Experts,
i want a route fail-over via three ways...
1. 172.30.64.1 must go via 172.24.18.6 if its available
2. if 1st not available then via 2nd route: 10.15.98.56.....
3. if 1st and 2nd route not available then via 3rd route: 10.15.98.50.
My config:
ip route 172.30.64.1 255.255.255.255 172.24.18.6 track 4
ip route 172.30.64.1 255.255.255.255 10.15.98.56 name Server track 6
ip route 172.30.64.1 255.255.255.255 10.15.98.50 name Server
Is it correct or not? if not then please provide me the correct version!!
Thanks
Solved! Go to Solution.
03-22-2018 08:21 AM
Hello,
I did some testing, and this is what I have come up with (I have changed the SLA numbering for clarity):
track 1 ip sla 1 reachability
!
track 2 ip sla 2 reachability
!
ip sla 1
icmp-echo 172.24.56.2 source-interface GigabitEthernet0/2
threshold 300
timeout 1000
frequency 3
!
ip sla schedule 1 life forever start-time now
!
ip sla 2
icmp-echo 10.13.98.56 source-interface tunnel556
threshold 300
timeout 1000
frequency 3
!
ip sla schedule 2 life forever start-time now
!
ip route 172.31.64.1 255.255.255.255 172.24.56.2 track 1
ip route 172.31.64.1 255.255.255.255 10.13.98.56 10 track 2
ip route 172.31.64.1 255.255.255.255 10.13.98.50 20
03-22-2018 02:18 AM
Hello,
you need to use boolean operators. Post the full config of your router so we can fill in the necessary bits and pieces...
03-22-2018 08:21 AM
Hello,
I did some testing, and this is what I have come up with (I have changed the SLA numbering for clarity):
track 1 ip sla 1 reachability
!
track 2 ip sla 2 reachability
!
ip sla 1
icmp-echo 172.24.56.2 source-interface GigabitEthernet0/2
threshold 300
timeout 1000
frequency 3
!
ip sla schedule 1 life forever start-time now
!
ip sla 2
icmp-echo 10.13.98.56 source-interface tunnel556
threshold 300
timeout 1000
frequency 3
!
ip sla schedule 2 life forever start-time now
!
ip route 172.31.64.1 255.255.255.255 172.24.56.2 track 1
ip route 172.31.64.1 255.255.255.255 10.13.98.56 10 track 2
ip route 172.31.64.1 255.255.255.255 10.13.98.50 20
03-22-2018 09:39 AM
is it working or did you test it in your LAB ?
Thanks in advance.
03-22-2018 09:41 AM
Tested in lab and working. However, check if it works in your live environment as well, to be sure...
03-23-2018 12:17 AM
Thanks, Its working.
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