Skip to content

Belajar Mengkonfigurasi VRRP (Virtual Router Redudancy Protocol)

Belajar Mengkonfigurasi VRRP
(Virtual Router Redudancy Protocol)
----------------------------------------------------------
"VRRP, An Open standard alternative to cisco's
HSRP, providing the same functionality"

Standard          : RFC 3768
Load Balancing    : No
IPv6 Support      : No
Tranport          : IP 112
Default Priority  : 100
Default Hello     : 1s
Multicast Group   : 224.0.0.18

reference: packetlife.net
----------------------------------------------------------
Topology yang digunakan adalah sebagai berikut:
----------------------------------------------------------


----------------------------------------------------------
VRRP Sample Configuration on cnc1 
----------------------------------------------------------
!
track 1 interface Serial1/0 line-protocol
!
interface FastEthernet0/0
 ip address 192.168.10.2 255.255.255.0
 duplex auto
 speed auto
 vrrp 1 ip 192.168.10.1
 vrrp 1 priority 110
 vrrp 1 authentication iwing123
 vrrp 1 track 1 decrement 20
!
----------------------------------------------------------
VRRP Sample Configuration on cnc2 
----------------------------------------------------------
!
interface FastEthernet0/0
 ip address 192.168.10.3 255.255.255.0
 duplex auto
 speed auto
 vrrp 1 ip 192.168.10.1
 vrrp 1 authentication iwing123
!
----------------------------------------------------------
How to check 1 (show vrrp all/brief)
----------------------------------------------------------
cnc1#sh vrrp all
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 110
 Track object 1 state Up decrement 20
 Authentication text "iwing123"
 Master Router is 192.168.10.2 (local), priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.570 sec

cnc1#
----------------------------------------------------------
cnc2#sh vrrp all
FastEthernet0/0 - Group 1
 State is Backup
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Authentication text "iwing123"
 Master Router is 192.168.10.2, priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec (expires in 3.425 sec)

cnc2#
----------------------------------------------------------
How to check 2 (ping and tracert)
----------------------------------------------------------
C:\>ping 192.168.40.5 -n 5

Pinging 192.168.40.5 with 32 bytes of data:

Reply from 192.168.40.5: bytes=32 time=341ms TTL=126
Reply from 192.168.40.5: bytes=32 time=262ms TTL=126
Reply from 192.168.40.5: bytes=32 time=280ms TTL=126
Reply from 192.168.40.5: bytes=32 time=528ms TTL=126
Reply from 192.168.40.5: bytes=32 time=444ms TTL=126

Ping statistics for 192.168.40.5:
 Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 262ms, Maximum = 528ms, Average = 371ms
----------------------------------------------------------
C:\>tracert 192.168.40.5

Tracing route to 192.168.40.5 over a maximum of 30 hops

 1    92 ms    87 ms   144 ms  192.168.10.2
 2   277 ms   191 ms   348 ms  192.168.20.2
 3   206 ms   291 ms   387 ms  192.168.40.5

Trace complete.

C:\>
----------------------------------------------------------
How to check 3 (shutdown int f0/0 on cnc1)
----------------------------------------------------------
cnc1(config)#int f0/0
cnc1(config-if)#shut
cnc1(config-if)#
*Jul 11 10:13:34.667: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Init
*Jul 11 10:13:34.687: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Jul 11 10:13:36.667: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
*Jul 11 10:13:36.667: %ENTITY_ALARM-6-INFO: ASSERT INFO Fa0/0 Physical Port Administrative State Down
*Jul 11 10:13:37.667: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
----------------------------------------------------------
cnc2#
*Jul 11 10:07:28.327: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master
----------------------------------------------------------
cnc1#sh vrrp all
FastEthernet0/0 - Group 1
 State is Init
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 110
 Track object 1 state Up decrement 20
 Authentication text "iwing123"
 Master Router is unknown, priority is unknown
 Master Advertisement interval is unknown
 Master Down interval is unknown

cnc1#
----------------------------------------------------------
cnc2#sh vrrp all
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Authentication text "iwing123"
 Master Router is 192.168.10.3 (local), priority is 100
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec

cnc2#
----------------------------------------------------------

C:\>ping 192.168.40.5 -n 5

Pinging 192.168.40.5 with 32 bytes of data:

Reply from 192.168.40.5: bytes=32 time=332ms TTL=126
Reply from 192.168.40.5: bytes=32 time=351ms TTL=126
Reply from 192.168.40.5: bytes=32 time=322ms TTL=126
Reply from 192.168.40.5: bytes=32 time=449ms TTL=126
Reply from 192.168.40.5: bytes=32 time=615ms TTL=126

Ping statistics for 192.168.40.5:
 Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 322ms, Maximum = 615ms, Average = 413ms
----------------------------------------------------------
C:\>tracert 192.168.40.5

Tracing route to 192.168.40.5 over a maximum of 30 hops

 1   267 ms   167 ms    53 ms  192.168.10.3
 2   388 ms   246 ms   168 ms  192.168.30.2
 3   407 ms   368 ms   310 ms  192.168.40.5

Trace complete.

C:\>
----------------------------------------------------------
How to check 4 (no shutdown int f0/0 on cnc1)
----------------------------------------------------------
cnc1(config)#int f0/0
cnc1(config-if)#no shut
cnc1(config-if)#
*Jul 11 10:16:27.267: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Init -> Backup
*Jul 11 10:16:29.251: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jul 11 10:16:29.251: %ENTITY_ALARM-6-INFO: CLEAR INFO Fa0/0 Physical Port Administrative State Down
*Jul 11 10:16:30.251: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Jul 11 10:16:30.839: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master
*Jul 11 10:16:33.503: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done
----------------------------------------------------------
cnc2#
*Jul 11 10:10:39.731: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Backup
*Jul 11 10:10:41.523: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
----------------------------------------------------------
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 110
 Track object 1 state Up decrement 20
 Authentication text "iwing123"
 Master Router is 192.168.10.2 (local), priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.570 sec

cnc1#
----------------------------------------------------------
cnc2#sh vrrp all
FastEthernet0/0 - Group 1
 State is Backup
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Authentication text "iwing123"
 Master Router is 192.168.10.2, priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec (expires in 2.045 sec)

cnc2#
----------------------------------------------------------

C:\>ping 192.168.40.5 -n 5

Pinging 192.168.40.5 with 32 bytes of data:

Reply from 192.168.40.5: bytes=32 time=379ms TTL=126
Reply from 192.168.40.5: bytes=32 time=335ms TTL=126
Reply from 192.168.40.5: bytes=32 time=371ms TTL=126
Reply from 192.168.40.5: bytes=32 time=346ms TTL=126
Reply from 192.168.40.5: bytes=32 time=428ms TTL=126

Ping statistics for 192.168.40.5:
 Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 335ms, Maximum = 428ms, Average = 371ms

C:\>tracert 192.168.40.5
----------------------------------------------------------
Tracing route to 192.168.40.5 over a maximum of 30 hops

 1   607 ms   395 ms   516 ms  192.168.10.2
 2   628 ms   201 ms   382 ms  192.168.20.2
 3   607 ms   521 ms   339 ms  192.168.40.5

Trace complete.

C:\>
----------------------------------------------------------
How to check 5 (shutdown int s1/0 on cnc1)
----------------------------------------------------------
cnc1(config)#int s1/0
cnc1(config-if)#shutdown
cnc1(config-if)#
*Jul 11 10:19:19.015: %TRACKING-5-STATE: 1 interface Se1/0 line-protocol Up->Down
*Jul 11 10:19:19.023: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Serial1/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Jul 11 10:19:20.995: %LINK-5-CHANGED: Interface Serial1/0, changed state to administratively down
*Jul 11 10:19:20.995: %ENTITY_ALARM-6-INFO: ASSERT INFO Se1/0 Physical Port Administrative State Down
*Jul 11 10:19:21.995: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
*Jul 11 10:19:22.023: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Backup
----------------------------------------------------------
cnc2#
*Jul 11 10:13:28.343: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master
----------------------------------------------------------
cnc1(config-if)#do sh vrrp all
FastEthernet0/0 - Group 1
 State is Backup
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 90  (cfgd 110)
 Track object 1 state Down decrement 20
 Authentication text "iwing123"
 Master Router is 192.168.10.3, priority is 100
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.570 sec (expires in 3.198 sec)

cnc1(config-if)#
----------------------------------------------------------
cnc2#sh vrrp all
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Authentication text "iwing123"
 Master Router is 192.168.10.3 (local), priority is 100
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec

cnc2#
----------------------------------------------------------
C:\>ping 192.168.40.5 -n 5

Pinging 192.168.40.5 with 32 bytes of data:

Reply from 192.168.40.5: bytes=32 time=231ms TTL=126
Reply from 192.168.40.5: bytes=32 time=413ms TTL=126
Reply from 192.168.40.5: bytes=32 time=316ms TTL=126
Reply from 192.168.40.5: bytes=32 time=480ms TTL=126
Reply from 192.168.40.5: bytes=32 time=367ms TTL=126

Ping statistics for 192.168.40.5:
 Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 231ms, Maximum = 480ms, Average = 361ms
----------------------------------------------------------
C:\>tracert 192.168.40.5

Tracing route to 192.168.40.5 over a maximum of 30 hops

 1   326 ms   121 ms    48 ms  192.168.10.3
 2   392 ms   202 ms   207 ms  192.168.30.2
 3   544 ms   603 ms   515 ms  192.168.30.2
 4   423 ms   256 ms   276 ms  192.168.40.5

Trace complete.

C:\>
----------------------------------------------------------
How to check 6 (no shutdown int s1/0 on cnc1)
----------------------------------------------------------
cnc1(config-if)#int s1/0
cnc1(config-if)#no shut
cnc1(config-if)#
*Jul 11 10:22:31.627: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Jul 11 10:22:31.627: %ENTITY_ALARM-6-INFO: CLEAR INFO Se1/0 Physical Port Administrative State Down
*Jul 11 10:22:31.635: %TRACKING-5-STATE: 1 interface Se1/0 line-protocol Down->Up
*Jul 11 10:22:32.635: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
*Jul 11 10:22:33.487: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master
*Jul 11 10:22:43.575: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Serial1/0 from LOADING to FULL, Loading Done
----------------------------------------------------------
cnc2#
*Jul 11 10:16:47.391: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Backup
----------------------------------------------------------
cnc1(config-if)#do sh vrrp all
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 110
 Track object 1 state Up decrement 20
 Authentication text "iwing123"
 Master Router is 192.168.10.2 (local), priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.570 sec

cnc1(config-if)#
----------------------------------------------------------
cnc2#sh vrrp all
FastEthernet0/0 - Group 1
 State is Backup
 Virtual IP address is 192.168.10.1
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Authentication text "iwing123"
 Master Router is 192.168.10.2, priority is 110
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec (expires in 3.185 sec)

cnc2#
----------------------------------------------------------
C:\>ping 192.168.40.5 -n 5

Pinging 192.168.40.5 with 32 bytes of data:

Reply from 192.168.40.5: bytes=32 time=441ms TTL=126
Reply from 192.168.40.5: bytes=32 time=427ms TTL=126
Reply from 192.168.40.5: bytes=32 time=594ms TTL=126
Reply from 192.168.40.5: bytes=32 time=863ms TTL=126
Reply from 192.168.40.5: bytes=32 time=324ms TTL=126

Ping statistics for 192.168.40.5:
 Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 324ms, Maximum = 863ms, Average = 529ms
----------------------------------------------------------
C:\>tracert 192.168.40.5

Tracing route to 192.168.40.5 over a maximum of 30 hops

 1   184 ms   105 ms    82 ms  192.168.10.2
 2   332 ms   261 ms   214 ms  192.168.20.2
 3   323 ms   344 ms   467 ms  192.168.40.5

Trace complete.

C:\>
----------------------------------------------------------
"Sekian dulu dan semoga bermanfaat"

ref
[1].http://www.ccie18473.net
[2].http://www.packetlife.net
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: