HSRP ( Hot Standby Router Protocol ) 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. 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 dikenal si host adalah ip-nya
virtual router.
Yuk, masuk ke konfigurasinya :
Router(config)#int Giga
Router(config)#int GigabitEthernet0/1
Router(config-if)#ip add 192.168.2.2 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby 2 version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 2 ip 192.168.2.1
Router(config-if)#standby 2 priority 120
Router(config-if)#standby 2 preempt
Router(config-if)#ex
Router(config)#ex
Router(config)#int Giga
Router(config)#int GigabitEthernet0/0
Router(config-if)#ip add 192.168.1.3 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 1 ip 192.168.1.1
Router(config-if)#ex
Router(config)#int Gig
Router(config)#int GigabitEthernet0/1
Router(config-if)#ip add 192.168.2.3 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 2 ip 192.168.2.1
Router(config-if)#ex
Router(config)#int Gig0/0
Router(config-if)#no shut
Router(config)#int GigabitEthernet0/1
Router(config-if)#ip add 192.168.2.2 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby 2 version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 2 ip 192.168.2.1
Router(config-if)#standby 2 priority 120
Router(config-if)#standby 2 preempt
Router(config-if)#ex
Router(config)#ex
Router(config)#int Giga
Router(config)#int GigabitEthernet0/0
Router(config-if)#ip add 192.168.1.3 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 1 ip 192.168.1.1
Router(config-if)#ex
Router(config)#int Gig
Router(config)#int GigabitEthernet0/1
Router(config-if)#ip add 192.168.2.3 255.255.255.0
Router(config-if)#duplex auto
Router(config-if)#speed auto
Router(config-if)#standby version 2
% Invalid input detected at '^' marker.
Router(config-if)#standby 2 ip 192.168.2.1
Router(config-if)#ex
Router(config)#int Gig0/0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#ex
Router(config)#int Gig0/1
Router(config-if)#no shut
Router(config)#int Gig0/1
Router(config-if)#no shut
Cek terminologinya :
Router#show standby
GigabitEthernet0/0 - Group 1 (version 2)
State is Active
9 state changes, last state change 00:17:57
Virtual IP address is 192.168.1.1
Active virtual MAC address is 0000.0C9F.F001
Local virtual MAC address is 0000.0C9F.F001 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.212 secs
Preemption enabled
Active router is local
Standby router is 192.168.1.3, priority 120 (expires in 8 sec)
Priority 120 (configured 120)
Group name is hsrp-Gig0/0-1 (default)
GigabitEthernet0/1 - Group 2 (version 2)
State is Active
5 state changes, last state change 00:16:32
Virtual IP address is 192.168.2.1
Active virtual MAC address is 0000.0C9F.F002
Local virtual MAC address is 0000.0C9F.F002 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.723 secs
Preemption enabled
Active router is local
Standby router is 192.168.2.3
Priority 120 (configured 120)
Group name is hsrp-Gig0/1-2 (default)
Router#
GigabitEthernet0/0 - Group 1 (version 2)
State is Active
9 state changes, last state change 00:17:57
Virtual IP address is 192.168.1.1
Active virtual MAC address is 0000.0C9F.F001
Local virtual MAC address is 0000.0C9F.F001 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.212 secs
Preemption enabled
Active router is local
Standby router is 192.168.1.3, priority 120 (expires in 8 sec)
Priority 120 (configured 120)
Group name is hsrp-Gig0/0-1 (default)
GigabitEthernet0/1 - Group 2 (version 2)
State is Active
5 state changes, last state change 00:16:32
Virtual IP address is 192.168.2.1
Active virtual MAC address is 0000.0C9F.F002
Local virtual MAC address is 0000.0C9F.F002 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.723 secs
Preemption enabled
Active router is local
Standby router is 192.168.2.3
Priority 120 (configured 120)
Group name is hsrp-Gig0/1-2 (default)
Router#
Kesimpulannya, router 0 aktif berarti router tersebut yang forward packet.
Cek di router berikutnya :
Router#show standby
GigabitEthernet0/0 - Group 1 (version 2)
State is Standby
8 state changes, last state change 00:18:06
Virtual IP address is 192.168.1.1
Active virtual MAC address is 0000.0C9F.F001
Local virtual MAC address is 0000.0C9F.F001 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.76 secs
Preemption disabled
Active router is 192.168.1.2, priority 100 (expires in 8 sec)
MAC address is 0000.0C9F.F001
Standby router is local
Priority 100 (default 100)
Group name is hsrp-Gig0/0-1 (default)
GigabitEthernet0/1 - Group 2 (version 2)
State is Standby
8 state changes, last state change 00:18:18
Virtual IP address is 192.168.2.1
Active virtual MAC address is 0000.0C9F.F002
Local virtual MAC address is 0000.0C9F.F002 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.008 secs
Preemption disabled
Active router is 192.168.2.2
Standby router is local
Priority 100 (default 100)
Group name is hsrp-Gig0/1-2 (default)
Router#
Router 1 berstatus standby, mengindikasikan bahwa router ini menjadi backup router apabila terjadi down time di router 0.
Tes koneksinya :
PC>ping 192.168.2.100
Pinging 192.168.2.100 with 32 bytes of
data:
Reply from 192.168.2.100: bytes=32
time=4ms TTL=127
Reply from 192.168.2.100: bytes=32
time=0ms TTL=127
Reply from 192.168.2.100: bytes=32
time=0ms TTL=127
Reply from 192.168.2.100: bytes=32
time=0ms TTL=127
Ping statistics for 192.168.2.100:
Packets: Sent = 4, Received = 4, Lost =
0 (0% loss),
Approximate round trip times in
milli-seconds:
Minimum = 0ms, Maximum = 4ms, Average =
1ms
Simpan konfigurasinya :
Router#wr memory
Building configuration...
[OK]
Router#
0 komentar:
Post a Comment