Lab 21. HSRP – IP SLA
R2
R2(config)#no track 1 ip route 8.8.8.8 255.255.255.255 reachability
!
R2(config)#ip sla 1
R2(config-ip-sla)#icmp-echo 8.8.8.8 source-interface f0/1
R2(config-ip-sla-echo)#frequency 10
R2(config-ip-sla-echo)#timeout 5000
R2(config-ip-sla-echo)#track 1 ip sla 1
reachability R2(config-track)#exit
R2(config)#ip sla schedule 1 start-time now life forever
!
* untuk fitur trackingnya sudah dipasang bekas konfigurasi
sebelumnya
cek
R2
R2(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1
110 P Active local 192.168.12.1 192.168.12.254
matikan loopback R3 , jadi ip 8.8.8.8 tidak bisa di ping
R3
R3(config)#interface lo0
R3(config-if)#shutdown
R3(config-if)#exit
status tracking menjadi down dari yang sebelumnya up kemudian standby
R2
*Feb 3 12:04:53.907: %TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down
priority nya menjadi 90 dengan state standby
R2
R2(config)#do show standby brief
P indicates configured to preempt.
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 90 P
Standby 192.168.12.1 local 192.168.12.254
AKTIFKAN LAGI LOOPBACK DI R3
R3
R3(config)#int lo0
R3(config-if)#no sh
R3(config-if)#ex
R2
R2(config)#
*Feb 3 12:07:18.907: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up
*Feb 312:07:19.459:%HSRP-5-STATECHANGE:FastEthernet0/1Grp1stateStandby
-> Active
berubah menjadi up dan active
prioritynya yaitu 110
R2
R2(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 110
P Active local 192.168.12.1 192.168.12.254
Tidak ada komentar:
Posting Komentar