History
VRRP is based on Cisco's proprietary Hot Standby Router Protocol (HSRP) concepts. The protocols, while similar in concept, are not compatible. Therefore, on newer installations VRRP is usually implemented, because it is the standard and is supported by many router and switch products.
- (Cisco Example) VLAN Tagging
track 1 interface Serial0/0/0.1 ip routing ! Points at the interface that needs to be Prioritized interface fastethernet0/0.1 ! VLANs have to be on a Sub-Interface, It is best practice to match the Sub-Interface # and the VLAN # encapsulation dot1q 1 ! Enables IEEE 802.1Q VLAN frame tagging, followed by the VLAN # that this sub-interface will route ip address x.x.x.x 255.255.255.0 ! Make sure the IP is on the same subnet as the virtual Gateway1 vrrp 1 priority 110 ! The Priority of the Gateway1 vrrp 1 ip
! The Virtual Gateway for the VLAN 1 vrrp 1 preempt delay minimum 20 ! If the other router fails it will wait 20 sec before becoming the master vrrp 1 track 1 decrement 15 ! If the S0/0/0.1 Link fails, This command drops the priority by 15
! interface fastethernet0/0.5 ! VLANs have to be on a Sub-Interface, It is best practice to match the Sub-Interface # and the VLAN # encapsulation dot1q 5 ! Enables IEEE 802.1Q VLAN frame tagging, followed by the VLAN # that this sub-interface will route ip address x.x.x.x 255.255.255.0 ! Make sure the IP is on the same subnet as the virtual Gateway2 vrrp 5 priority 110 ! The Priority of the Gateway2 vrrp 5 ip ! The Virtual Gateway for the VLAN 5 vrrp 5 preempt delay minimum 20 ! If the other router fails it will wait 20 sec before becoming the master vrrp 5 track 1 decrement 15 ! If the Fa0/0.5 Link fails, This command drops the priority by 15
! router bgp network mask 255.255.255.0 ! Broadcasts Gateway1 out the WAN through BGP network mask 255.255.255.0 ! Broadcasts Gateway2 out the WAN through BGP