Anda di halaman 1dari 7

Belajar Konfigurasi Basic HSRP (Hot Standby

Router Protocol)
Belajar Konfigurasi Basic HSRP (Hot Standby Router Protocol)
Topology yang digunakan adalah sebagai berikut:

Sedikit sedikit cari informasi tentang pengertian teorinya, saya ringkas sebisanya 

HSRP adalah metode standar untuk memberikan ketersediaan jaringan yang tinggi dengan
menyediakan First-hop redundancy untuk IP host pada LAN IEEE 802 dikonfigurasi dengan
default gateway IP address. Sebuah jaringan dengan High availability menyediakan sarana
alternatif yang mana semua infrastructure paths dan key server dapat diakses setiap saat. Hot
Standby Router rotocol (HSRP) adalah salah satu fitur perangkat lunak tersebut yang dapat
dikonfigurasi untuk menyediakan Layer 3 redundansi untuk network host.

Ini memungkinkan dua router interface untuk bekerja sama untuk menyajikan penampilan satu
virtual router atau default gateway untuk host di LAN. Jadi dengan kata lain ketika salah satu
router yang terconfigure dalam Hsrp nya down maka Link pada jaringan tersebut tetap berjalan,
dikarenakan ip gateway yang di kenal si host adalah ip nya virtual router.

Hadeuh pusing  mending langsung kita praktekin aja :p

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
-Shadow redundant Pada kenyataannya tidak ada.
-redundant2 merupakan router primary dengan priority 100
-redundant1 merupakan router secondary dengan priority 50

Konfigurasinya adalah sebagai berikut :


Router redundant2 :
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
[standby] [grup id:default 0] [ip] [ip standby:A.B.C.D]
standby ip 10.10.10.1
standby priority 100
standby preempt
!kalau tidak diberi perintah preempt, jika ingin kembali normal,router harus
!di reboot terlebih dahulu.
standby track FastEthernet 0/0 60
standby track FastEthernet 1/0 60
!perintah ini mengantisipasi, jika f 0/0 dan 1/0 down secara otomatis
priority akan berkurang sebesar 60 (100-60=40) hal ini menyebabkan redundant1
berubah dari state stanby -> active

jika konfigurasi benar akan muncul line seperti berikut:


*Mar 28 12:30:52.291: %HSRP-5-STATECHANGE: FastEthernet 0/0 Grp 10 state
Standby -> Active

Router redundant1 :
interface FastEthernet 1/0
ip address 10.10.10.2 255.255.255.0
standby ip 10.10.10.1
standby priority 50
standby preempt

!jika konfigurasi benar akan muncul line seperti berikut:


*Mar 28 12:31:12.843: %HSRP-5-STATECHANGE: FastEthernet 1/0 Grp 10 state
Speak -> Standby

How to check:

redundant2#show standby
FastEthernet0/0 - Group 0
State is Active
2 state changes, last state change 00:09:01
Virtual IP address is 10.10.10.1
Active virtual MAC address is 0000.0c07.ac00
Local virtual MAC address is 0000.0c07.ac00 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.780 secs
Preemption enabled
Active router is local
Standby router is 10.10.10.2, priority 50 (expires in 8.216 sec)

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
Priority 100 (default 100)
Track interface FastEthernet0/0 state Up decrement 60
Track interface FastEthernet1/0 state Up decrement 60
IP redundancy name is "hsrp-Fa0/0-0" (default)

redundant2#show standby brief


P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Fa0/0 0 100 P Active local 10.10.10.2 10.10.10.1

redundant1#show standby
FastEthernet1/0 - Group 0
State is Standby
1 state change, last state change 00:08:00
Virtual IP address is 10.10.10.1
Active virtual MAC address is 0000.0c07.ac00
Local virtual MAC address is 0000.0c07.ac00 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.052 secs
Preemption enabled
Active router is 10.10.10.3, priority 100 (expires in 9.624 sec)
Standby router is local
Priority 50 (configured 50)
IP redundancy name is "hsrp-Fa1/0-0" (default)

redundant1#show standby brief


P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Fa1/0 0 50 P Standby 10.10.10.3 local 10.10.10.1

Debug standby :

redundant2#debug standby
HSRP debugging is on
redundant2#
*Mar 1 00:22:33.739: HSRP: Fa0/0 Grp 0 Hello in 10.10.10.2 Standby pri 50 vIP 10.10.10.1

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
*Mar 1 00:22:34.291: HSRP: Fa0/0 Grp 0 Hello out 10.10.10.3 Active pri 100 vIP 10.10.10.1
redundant2#
*Mar 1 00:22:36.699: HSRP: Fa0/0 Grp 0 Hello in 10.10.10.2 Standby pri 50 vIP 10.10.10.1
*Mar 1 00:22:37.291: HSRP: Fa0/0 Grp 0 Hello out 10.10.10.3 Active pri 100 vIP 10.10.10.1
redundant2#undebug all
All possible debugging has been turned off

Disini saya coba menggunakan routing statik untuk menghubungkan seluruh


device, 

Router 1 :
iproute 10.10.10.0 255.255.255.0 20.20.20.0

redundant 2 :
iproute 192.168.2.0 255.255.255.0 20.20.20.6

redundant 1 :
iproute 192.168.2.0 255.255.255.0 20.20.20.1

Pengetesan redundant nya...ciaa elah... lebay.com


=))

Coba kita tracert dari PC 1 ke PC 2 dalam keadaan normal :


PC1#traceroute 192.168.2.10
Type escape sequence to abort.
Tracing the route to 192.168.2.10
1 10.10.10.3 52 msec 64 msec 16 msec (lewat redundant 2 karena prioritynya lebih besar)
2 20.20.20.6 40 msec 24 msec 12 msec
3 192.168.2.10 76 msec * 64 msec

Coba kita tracert dari PC 1 ke PC 2 dalam keadaan f 0/0 down :

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
redundant2(config)#int fa 0/0
redundant2(config-if)#shutdown
redundant2(config-if)#
*Mar 1 00:47:00.835: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 0 state Active -> Init
*Mar 1 00:47:00.851: %TRACKING-5-STATE: 1 interface Fa0/0 line-protocol Up->Down
redundant2(config-if)#
*Mar 1 00:47:02.847: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to
administratively down
*Mar 1 00:47:03.847: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to down
redundant2(config-if)#

redundant1#debug standby
*Mar 1 00:45:16.191: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Active pri 100 vIP 10.10.10.1
*Mar 1 00:45:17.707: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Standby pri 50 vIP 10.10.10.1
*Mar 1 00:45:18.039: HSRP: Fa1/0 Grp 0 Resign in 10.10.10.3 Active pri 100 vIP 10.10.10.1
*Mar 1 00:45:18.039: HSRP: Fa1/0 Grp 0 Standby: i/Resign rcvd (100/10.10.10.3)
*Mar 1 00:45:18.043: HSRP: Fa1/0 Grp 0 Active router is local, was 10.10.10.3
*Mar 1 00:45:18.043: HSRP: Fa1/0 Grp 0 Standby router is unknown, was local
*Mar 1 00:45:18.043: HSRP: Fa1/0 Grp 0 Standby -> Active
*Mar 1 00:45:18.043: %HSRP-5-STATECHANGE: FastEthernet1/0 Grp 0 state Standby -> Active
*Mar 1 00:45:18.043: HSRP: Fa1/0 Redirect adv out, Active, active 1 passive 1
*Mar 1 00:45:18.047: HSRP: Fa1/0 Grp 0 Redundancy "hsrp-Fa1/0-0" state Standby -> Active

Jgn lupa di undebug buat non aktifkan monitoring standby nya.


redundant1#undebug all

PC1#traceroute 192.168.2.10
Type escape sequence to abort.
Tracing the route to 192.168.2.10
1 10.10.10.2 44 msec 36 msec 12 msec (lewat redundant 1, karena f 0/0 redundant1 down)
2 20.20.20.1 0 msec 36 msec 8 msec
3 192.168.2.10 48 msec * 56 msec

Sekarang kita kembalikan seperti semula, Up kan fe 0/0 di redundant 2 :

redundant2#conf t
redundant2(config)#int fa 0/0
redundant2(config)#no shutdown

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
redundant1#debug standby
*Mar 1 01:27:06.059: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Active pri 100 vIP 10.10.10.1
*Mar 1 01:27:06.087: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Speak pri 50 vIP 10.10.10.1
redundant1#
*Mar 1 01:27:09.059: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Active pri 100 vIP 10.10.10.1
*Mar 1 01:27:09.087: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Speak pri 50 vIP 10.10.10.1
*Mar 1 01:27:10.075: HSRP: Fa1/0 Grp 0 Speak: d/Standby timer expired (unknown)
*Mar 1 01:27:10.075: HSRP: Fa1/0 Grp 0 Standby router is local
*Mar 1 01:27:10.075: HSRP: Fa1/0 Grp 0 Speak -> Standby
*Mar 1 01:27:10.075: %HSRP-5-STATECHANGE: FastEthernet1/0 Grp 0 state Speak -> Standby
redundant1#

Jgn lupa di undebug buat non aktifkan monitoring standby nya.


redundant1#undebug all
PC1#traceroute 192.168.2.10
Type escape sequence to abort.
Tracing the route to 192.168.2.10
1 10.10.10.3 44 msec 64 msec 12 msec (kembali lagi lewat redundant2 kan udah up lagi )
2 20.20.20.6 4 msec 64 msec 12 msec
3 192.168.2.10 40 msec * 84 msec

Nah sekarang gimana kalo interface Fa 1/0 redundant 2 yang mati?


(disini baru keliatan priority redundant 2 bakalan di kurangin 60 lewat command standby track diatas
tadi, otomatis lebih besar priority redundant 1 : 50, jadi tetep bisa tembus sampe PC 2 , lewat
redundant 1, gimana cukup mudah kan? )

redundant2#conf t
redundant2(config)#int fa 1/0
redundant2(config)#shutdown

redundant1#debug standby
*Mar 1 01:56:42.083: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Active pri 100 vIP 10.10.10.1
*Mar 1 01:56:43.083: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Standby pri 50 vIP 10.10.10.1
redundant1#
*Mar 1 01:56:45.067: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Active pri 40 vIP 10.10.10.1
*Mar 1 01:56:45.067: HSRP: Fa1/0 Grp 0 Standby: h/Hello rcvd from lower pri Active router
(40/10.10.10.3)
*Mar 1 01:56:45.071: HSRP: Fa1/0 Grp 0 Active router is local, was 10.10.10.3
*Mar 1 01:56:45.071: HSRP: Fa1/0 Grp 0 Standby router is unknown, was local
*Mar 1 01:56:45.071: HSRP: Fa1/0 Redirect adv out, Active, active 1 passive 2
*Mar 1 01:56:45.075: HSRP: Fa1/0 Grp 0 Coup out 10.10.10.2 Standby pri 50 vIP 10.10.10.1
*Mar 1 01:56:45.075: HSRP: Fa1/0 Grp 0 Standby -> Active

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 
*Mar 1 01:56:45.075: %HSRP-5-STATECHANGE: FastEthernet1/0 Grp 0 state Standby -> Active
*Mar 1 01:56:45.075: HSRP: Fa1/0 Redirect adv out, Active, active 1 passive 1
*Mar 1 01:56:45.079: HSRP: Fa1/0 Grp 0 Redundancy "hsrp-Fa1/0-0" state Standby -> Active
*Mar 1 01:56:45.079: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Active pri 50 vIP 10.10.10.1
*Mar 1 01:56:45.087: HSRP: Fa1/0 REDIRECT adv in, P
redundant1#assive, active 0, passive 1, from 10.10.10.3
*Mar 1 01:56:45.091: HSRP: Fa1/0 Grp 0 Resign in 10.10.10.3 Speak pri 40 vIP 10.10.10.1
*Mar 1 01:56:45.091: HSRP: Fa1/0 Grp 0 Active: i/Resign rcvd (40/10.10.10.3)
*Mar 1 01:56:45.091: HSRP: Fa1/0 Grp 0 Coup out 10.10.10.2 Active pri 50 vIP 10.10.10.1
*Mar 1 01:56:45.095: HSRP: Fa1/0 Grp 0 Hello out 10.10.10.2 Active pri 50 vIP 10.10.10.1
*Mar 1 01:56:45.295: HSRP: Fa1/0 Grp 0 Hello in 10.10.10.3 Speak pri 40 vIP 10.10.10.1
redundant1#

Jgn lupa di undebug buat non aktifkan monitoring standby nya.


redundant1#undebug all

PC1#traceroute 192.168.2.10
Type escape sequence to abort.
Tracing the route to 192.168.2.10
1 10.10.10.2 68 msec 44 msec 8 msec (lewat redundant 2 lagi, karena priority lebih besar)
2 20.20.20.1 32 msec 4 msec 16 msec
3 192.168.2.10 40 msec * 76 msec

Demikian, semoga bermanfaat 


Salam hangat

Ardi Aviyatna

Copyleft : konoharakureah@yahoo.co.id
Tulisan ini bisa di copy, di edit, dan diperbanyak, asal tetap memasukan nama penulisnya 