VRRP adalah open standar protocol, alternative untuk Cisco HSRP
VRRP Sample Configuration on C1
**************************************
!
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 agus123
vrrp 1 track 1 decrement 20
!
**************************************
VRRP Sample Configuration on C2
**************************************
!
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 agus123
!
**************************************
How to check 1 (show vrrp all/brief)
**************************************
C1#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 "agus123"
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
C1#
**************************************
C2#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 "agus123"
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)
C2#
**************************************
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 C1)
**************************************
C1(config)#int f0/0
C1(config-if)#shut
C1(config-if)#
*Dec 11 10:13:34.667: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Master -> Init
*Dec 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
*Dec 11 10:13:36.667: %LINK-5-CHANGED: Interface
FastEthernet0/0, changed state to administratively down
*Dec 11 10:13:36.667: %ENTITY_ALARM-6-INFO: ASSERT INFO
Fa0/0 Physical Port Administrative State Down
*Dec 11 10:13:37.667: %LINEPROTO-5-UPDOWN: Line protocol
on Interface FastEthernet0/0, changed state to down
**************************************
C2#
*Dec 11 10:07:28.327: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Backup -> Master
**************************************
C1#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 "agus123"
Master Router is unknown, priority is unknown
Master Advertisement interval is unknown
Master Down interval is unknown
C1#
**************************************
C2#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 "agus123"
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
C2#
**************************************
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 C1)
**************************************
C1(config)#int f0/0
C1(config-if)#no shut
C1(config-if)#
*Dec 11 10:16:27.267: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Init -> Backup
*Dec 11 10:16:29.251: %LINK-3-UPDOWN: Interface
FastEthernet0/0, changed state to up
*Dec 11 10:16:29.251: %ENTITY_ALARM-6-INFO: CLEAR INFO
Fa0/0 Physical Port Administrative State Down
*Dec 11 10:16:30.251: %LINEPROTO-5-UPDOWN: Line protocol
on Interface FastEthernet0/0, changed state to up
*Dec 11 10:16:30.839: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Backup -> Master
*Dec 11 10:16:33.503: %OSPF-5-ADJCHG: Process 1, Nbr
2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done
**************************************
C2#
*Dec 11 10:10:39.731: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Master -> Backup
*Dec 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 "agus123"
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
C1#
**************************************
C2#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 "agus123"
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)
C2#
**************************************
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 C1)
**************************************
C1(config)#int s1/0
C1(config-if)#shutdown
C1(config-if)#
*Dec 11 10:19:19.015: %TRACKING-5-STATE: 1 interface
Se1/0 line-protocol Up->Down
*Dec 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
*Dec 11 10:19:20.995: %LINK-5-CHANGED: Interface
Serial1/0, changed state to administratively down
*Dec 11 10:19:20.995: %ENTITY_ALARM-6-INFO: ASSERT INFO
Se1/0 Physical Port Administrative State Down
*Dec 11 10:19:21.995: %LINEPROTO-5-UPDOWN: Line protocol
on Interface Serial1/0, changed state to down
*Dec 11 10:19:22.023: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Master -> Backup
**************************************
C2#
*Dec 11 10:13:28.343: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Backup -> Master
**************************************
C1(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 "agus123"
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)
C1(config-if)#
**************************************
C2#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 "agus123"
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
C2#
**************************************
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 C1)
**************************************
C1(config-if)#int s1/0
C1(config-if)#no shut
C1(config-if)#
*Dec 11 10:22:31.627: %LINK-3-UPDOWN: Interface
Serial1/0, changed state to up
*Dec 11 10:22:31.627: %ENTITY_ALARM-6-INFO: CLEAR INFO
Se1/0 Physical Port Administrative State Down
*Dec 11 10:22:31.635: %TRACKING-5-STATE: 1 interface
Se1/0 line-protocol Down->Up
*Dec 11 10:22:32.635: %LINEPROTO-5-UPDOWN: Line protocol
on Interface Serial1/0, changed state to up
*Dec 11 10:22:33.487: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Backup -> Master
*Dec 11 10:22:43.575: %OSPF-5-ADJCHG: Process 1, Nbr
3.3.3.3 on Serial1/0 from LOADING to FULL, Loading Done
**************************************
C2#
*Dec 11 10:16:47.391: %VRRP-6-STATECHANGE: Fa0/0 Grp 1
state Master -> Backup
**************************************
C1(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 "agus123"
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
C1(config-if)#
**************************************
C2#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 "agus123"
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)
C2#
**************************************
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:\>
kita bisa lihat kalo interface C1 atau C2 down, melalui VRRP ini traffic tetap bisa lewat, asalkan salah satu router C1 atau C2 masih tetap up sebagai master...
referensi dari packetlife.net dan CCIE Bootcamp Indonesia
Tidak ada komentar:
Posting Komentar