Goal : Whenever up-link fail in HSRP active router, R4 still able to communicate with IP Loopback R1.
Scenario :
- Create HSRP with virtual ip gateway 192.168.1.1
- R3 as Active router & R2 as Standby router
- Create 2 tracking object + IP SLA
- 1 track is used when interface fa1/0 in R3 fail -> R4 as client still able to ping IP Loopback R1
- 1 track is used when next-hop 192.168.13.1 is unreachable -> R4 as client still able to ping IP Loopback R1
Configuration :
R2
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
standby 99 ip 192.168.1.1
standby 99 timers msec 100 msec 300
standby 99 preempt delay minimum 10
standby 99 authentication md5 key-string MDPA55
R3
ip sla monitor 1
type echo protocol ipIcmpEcho 192.168.13.1
frequency 5
ip sla monitor schedule 1 life forever start-time now
track 101 rtr 1 reachability
interface FastEthernet2/0
ip address 192.168.1.3 255.255.255.0
standby 99 ip 192.168.1.1
standby 99 timers msec 100 msec 300
standby 99 priority 150
standby 99 preempt delay minimum 10
standby 99 authentication md5 key-string MDPA55
standby 99 track FastEthernet1/0 60
standby 99 track 101 decrement 60
Verify :
- show standby
- show standby brief
- show ip sla monitor config
- show ip sla monitor statistic
- show track
- Test ping from R4 to R1 (1.1.1.1)