cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3080
Views
0
Helpful
7
Replies

Redundancy with 2 static routes in 2 routers

Chin
Level 1
Level 1

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. 

7 Replies 7

Dennis Mink
VIP Alumni
VIP Alumni

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?

Please remember to rate useful posts, by clicking on the stars below.

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.

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

event manager applet FAILOVER-INTERNET
 event tag prim syslog occurs 1 pattern "%TRACKING-5-STATE: 100 rtr 100 state Up->Down"
 event tag sec syslog occurs 1 pattern "%TRACKING-5-STATE: 100 rtr 100 reachability Up->Down"
 trigger
  correlate event prim or event sec
 action 1.0 cli command "enable"
 action 2.0 cli command "no ip route 0.0.0.0 0.0.0.0 103.xxx.xxx.132 track 100"
 action 3.0 cli command "exit"
 action 4.0 cli command "write memory"
Hope it is useful
:-)



>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hi Julio, 

Do you have any example EEM script for me to refer?

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:

event manager applet FAILOVER-INTERNET
 event tag prim syslog occurs 1 pattern "%TRACKING-5-STATE: 100 rtr 100 state Up->Down"
 event tag sec syslog occurs 1 pattern "%TRACKING-5-STATE: 100 rtr 100 reachability Up->Down"
 trigger
  correlate event prim or event sec
 action 1.0 cli command "enable"
 action 2.0 cli command "no ip route 0.0.0.0 0.0.0.0 103.xxx.xxx.132 track 100"
 action 3.0 cli command "ip route 0.0.0.0 0.0.0.0 192.168.152.254 10"
 action 4.0 cli command "exit"
 action 5.0 cli command "write memory"

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hi Julio, 

Thanks and I will test it out later. :)

You are welcome Tommy, remember the sintaxis could be different per device, it is related to a 6500 but the essence is that.

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<
Review Cisco Networking for a $25 gift card