10-12-2014 03:51 PM - edited 03-07-2019 09:04 PM
Hi,
I still learning and I have a few questions,
I'm trying to prepare the infrastructure:
2x Router – 2911
2x Switch – 2960G
I configured HSRP, router R1 is active and R2 is the standby.
Everything works and and when I do shoutdown interface Gi0 / 1 on router R1 HSRP runs and switches route on router R2.
The problem is when I simulate a crash on the side of the ISP and I will shutdown the interface Gi0 / 0 on Router R1
Then HSRP does not work. How do I fix this? How to monitoring the status of all Interface? Whether this is IP SLA? but I found examples showing how IP SLA switches routing on a router connected to two ISPs or can I use this with a version of the two routers? how to do it? and maybe use something else ? what I read?
R1
interface GigabitEthernet0/0
description do ISP_1
ip address XXX.XXX.XXX.XX 255.255.255.248
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
description do CoreSW1
ip address 192.168.1.101 255.255.255.0
ip nat inside
ip virtual-reassembly in
standby version 2
standby 1 ip 192.168.1.100
standby 1 priority 150
standby 1 preempt
duplex auto
speed auto
!
interface GigabitEthernet0/2
description do R2
ip address 10.0.0.1 255.255.255.252
duplex auto
speed auto
!
ip default-gateway XXX.XXX.XXX.XX
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XX
ip route 192.168.1.0 255.255.255.0 GigabitEthernet0/1
R2
interface GigabitEthernet0/0
description do ISP_2
ip address YY.YY.YYY.YYY 255.255.255.252
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
description do CoreSW2
ip address 192.168.1.102 255.255.255.0
ip nat inside
ip virtual-reassembly in
standby version 2
standby 1 ip 192.168.1.100
standby 1 preempt
duplex auto
speed auto
!
interface GigabitEthernet0/2
description do R1
ip address 10.0.0.2 255.255.255.252
duplex auto
speed auto
!
ip default-gateway YY.YY.YYY.YYY
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 YY.YY.YYY.YYY
ip route 192.168.1.0 255.255.255.0 GigabitEthernet0/1
!
IP SLA example - one router
!
ip route 0.0.0.0 0.0.0.0 2.2.2.1 2 track 1
ip route 0.0.0.0 0.0.0.0 1.1.1.1 3 track 2
ip route 0.0.0.0 0.0.0.0 2.2.2.1 5
!
no ip http server
no ip http secure-server
!
ip sla 11
icmp-echo 2.2.2.10
frequency 10
ip sla schedule 11 life forever start-time now
ip sla 22
icmp-echo 1.1.1.10
frequency 10
ip sla schedule 22 life forever start-time now
!
regards
weles
Solved! Go to Solution.
10-14-2014 05:10 PM
You should enable HSRP to track G0/0 line-protocol. In fact, considering your current configuration, HSRP is not aware of G0/0.
you must reconfigure your G0/1 standby like this:
-if)# standby 1 track gigabitEthernet 0/0 60
after implementing above command, if g0/0 goes down, R1 priority decrease by 60 and becomes 90, so R2 takes the lead and becomes new active router. the default decrement value is 10.
if g0/0 comes back on line, it takes over again because its preemption feature.
10-12-2014 06:12 PM
Hi,
Your config shows you are connecting to 2 ISPs, but your diagram shows you are connecting to only one ISP. Which is correct?
Also since HSRP traverses from r1 to sw1 to sw2 and r2, if you disconnect the cable from r1 to sw1, r2 will take over the HSRP active since it can't see r1 any more. So you don't need to track interface g0/1 rather the interface that connects to the provider (g0/0).
HTH
10-12-2014 11:59 PM
Hi,
correct scheme:
failure of a router or connected R1 - SW1 - HSRP works,
no internet (connection - ISP_1 - R1) - HSRP did not work
regards
weles
10-14-2014 05:10 PM
You should enable HSRP to track G0/0 line-protocol. In fact, considering your current configuration, HSRP is not aware of G0/0.
you must reconfigure your G0/1 standby like this:
-if)# standby 1 track gigabitEthernet 0/0 60
after implementing above command, if g0/0 goes down, R1 priority decrease by 60 and becomes 90, so R2 takes the lead and becomes new active router. the default decrement value is 10.
if g0/0 comes back on line, it takes over again because its preemption feature.
10-15-2014 08:52 AM
thank you very much, helped :))
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