Friday, March 29, 2013

Virtual Router Redundancy Protocol (VRRP)


Virtual Router Redundancy Protocol (VRRP) adalah protocol yang memungkinkan untuk topology IP-Fault-Tolerant. Seperti halnya Cisco proprietary protocol HSRP (Hot Standby Router Protocol), konsep VRRP yang dikembangkan oleh IEEE ini memiliki tujuan yang sama yaitu REDUNDANCY. Fungsi VRRP itu sendiri adalah menyediakan backup gateway, sehingga apabila primary gateway (master) failed traffic akan dilewatkan ke secondary gateway (backup). Pada topology dibawah ini 2 box srx 240 digunakan sebagai master dan backup gateway.
SRX240 (R4 ) Master
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.11/24 vrrp-group 1 virtual-address 12.12.12.1
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.11/24 vrrp-group 1 priority 200
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.11/24 vrrp-group 1 accept-data
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.11/24 vrrp-group 1 track interface ge-0/0/2 priority-cost 150
set interfaces ge-0/0/2 unit 0 family inet address 2.2.2.1/30
set interfaces lo0 unit 0 family inet address 6.6.6.6/32
set interfaces vlan unit 0 family inet address 192.168.1.1/24
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface lo0.0
set security forwarding-options family mpls mode packet-based
SRX240 R2 (BackUp)
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.10/24 vrrp-group 1 virtual-address 12.12.12.1
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.10/24 vrrp-group 1 priority 101
set interfaces ge-0/0/1 unit 0 family inet address 12.12.12.10/24 vrrp-group 1 accept-data
set interfaces ge-0/0/2 unit 0 family inet address 1.1.1.1/30
set interfaces lo0 unit 0 family inet address 7.7.7.7/32
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface lo0.0
set security forwarding-options family mpls mode packet-based
EX3200 (R1)
set interfaces ge-0/0/0 unit 0 family inet address 1.1.1.2/30
set interfaces ge-0/0/1 unit 0 family inet address 2.2.2.2/30
set interfaces lo0 unit 0 family inet address 5.5.5.5/32
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface lo0.0
Router R4 pada saat normal atau tanpa terputus
Router R4 pada saat R4-R1 di putus
Router R2
Sumber : http://3netcamp.wordpress.com/2012/04/09/vrrp/

No comments:

Post a Comment