03-20-2017 04:53 PM - edited 03-05-2019 08:13 AM
Hi,
Appreciate if someone can help to pinpoint what is my error when I configure 2 static routes in 2 routers for redundancy. But I can't failover to each other until I need to remove and re-add the route.
I have 2 routers 2901 routers and connecting to a 2960 switches.
RouterA
track 100 ip sla 100 reachability
delay down 30 up 30
interface GigabitEthernet0/0/0
ip address 192.168.152.254 255.255.255.0
ip nat inside
standby version 2
standby 152 ip 192.168.152.1
standby 152 priority 110
standby 152 preempt
ip virtual-reassembly
interface GigabitEthernet0/0/1
ip address 103.xxx.xxx.133 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
ip route 0.0.0.0 0.0.0.0 103.xxx.xxx.132 track 100
ip route 0.0.0.0 0.0.0.0 192.168.152.253 10
ip sla 100
icmp-echo 8.8.8.8 source-interface GigabitEthernet0/0/1
frequency 20
ip sla schedule 100 life forever start-time now
RouterB
interface GigabitEthernet0/0/0
ip address 192.168.152.253 255.255.255.0
ip nat inside
standby version 2
standby 152 ip 192.168.152.1
ip virtual-reassembly
interface GigabitEthernet0/0/1
ip address 113.xxx.xxx.233 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
ip route 0.0.0.0 0.0.0.0 113.xxx.xxx.232 5
ip route 0.0.0.0 0.0.0.0 192.168.152.254 10
Please correct me if Im wrong.
03-20-2017 06:19 PM
on your router A, does ip route 0.0.0.0 0.0.0.0 192.168.152.253 10 take over when you shut interface GigabitEthernet0/0/1?
03-20-2017 06:22 PM
Hi Dennis,
Yes, when I shutdown the G0/0/1, the route 0.0.0.0 0.0.0.0 192.168.152.253 will take over. But when i no shut the G0/0/1, the route still stick to 0.0.0.0 0.0.0.0 192.168.152.253.
03-20-2017 07:06 PM
Hi
The problem is not your config, that is fine. Now the failover will not be active because you can still reach the 8.8.8.8 when the interface G0/0/1 is still up or down.
What I have made for this situation is create an EEM script to remove the primary static route.
This a complement of your config.
track 100 ip sla 100 reachability
delay down 3
03-20-2017 07:06 PM
Hi Julio,
Do you have any example EEM script for me to refer?
03-20-2017 07:16 PM
Hi
Yeap, hope the config is useful. The sintaxis for the applet could be different for some devices.
You also could remove this line ip route 0.0.0.0 0.0.0.0 192.168.152.254 10 and add it to the script to create it once the EEM is triggered. Example:
:-)
03-20-2017 07:26 PM
Hi Julio,
Thanks and I will test it out later. :)
03-20-2017 07:32 PM
You are welcome Tommy, remember the sintaxis could be different per device, it is related to a 6500 but the essence is that.
:-)
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