Switching Lab 25 : VRRP – IP SLA
LAB 25
Hapus konfigurasi tracking bekas lab sebelumnya dan konfigurasikan IP SLA nya.
R1
R1(config)#no track 1 ip route 8.8.8.8 255.255.255.255 reachabilityR1(config)#ip sla 1
R1(config-ip-sla)#icmp-echo 8.8.8.8 source-interface f0/1
R1(config-ip-sla-echo)#frequency 10
R1(config-ip-sla-echo)#timeout 5000
R1(config-ip-sla-echo)#track 1 ip sla 1 reachability
R1(config)#ip sla schedule 1 start-time now life forever
!
R1(config)#do show run int f0/1 | i decrement
vrrp 1 track 1 decrement 20
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
R3(config)#int lo0 Shutdown interface loopback0 R3 sehingga ip 8.8.8.8 tidak bisa di ping
R3
R3(config-if)#shutdown
R3(config-if)#exit
*Des 10 12:37:17.739: %TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down Perhatikan status tracking akan berubah dari up menjadi down yang kemudian menjadi Backup
R1
R1(config)#
*Des 10 12:37:20.871: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Master -> Backup
R1(config)#
R1(config)#do show vrrp brief Sekarang nilai priority nya menjadi 90 dengan state backup
R1
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 90 3570 Y Backup 192.168.12.2 192.168.12.254
R2(config)#do show vrrp brief Dan R2 akan jadi master
R2
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 100 3609 YMaster 192.168.12.2 192.168.12.254
R3(config)#int lo0Aktifkan kembali interface loopback0 R3
R3
R3(config-if)#no shutdown
R3(config-if)#exit
*Des 10 12:41:02.739: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up Verifikasi lagi
R1
R1(config)#
*Des 10 12:41:05.931: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Backup -> Master
!
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
Comments
Post a Comment