Switching Tech, Lab 23. VRRP (Virtual Router Redundancy Protocol)
Untuk topology masih sama, Hapus Konfigurasi HSRP di R1 dan R2
R1 dan R2:
R1(config)#default int f0/1
R1(config)#default int f0/1
Konfigurasikan VRRP pada kedua Router
R1:
R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#vrrp 1 ip 192.168.12.254
R1(config-if)#vrrp 1 priority 110
R1(config-if)#vrrp 1 authentication md5 key-string cisco
R2:
R2(config)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#vrrp 1 ip 192.168.12.254
R2(config-if)#vrrp 1 authentication md5 key-string cisco
Konfigurasi di PC
R1 dan R2:
PC1> ip 192.168.12.10/24 192.168.12.254
PC2> ip 192.168.12.11/24 192.168.12.254
Verifikasi
R1:
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
R2:
R2(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1 1 100 3609 Y Backup 192.168.12.1 192.168.12.254
R1:
R1(config-if)#shutdown
R1(config-if)# Shutdown interface f0/1 R1 (Master)
*Des 15 12:22:54.167: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Master -> Init R1(config-if)#
*Des 15 12:22:54.275: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor
192.168.12.2 (FastEthernet0/1) is down: interface down
R2:
R2(config)#
*Des 15 12:22:54.775: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Backup -> Master
R2:
R2(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1 1 100 3609 Y Master 192.168.12.2 192.168.12.254
R1:
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Fa0/1 1 110 3570 Y Init 0.0.0.0 192.168.12.254

Komentar
Posting Komentar